Skip to content

Commit

Permalink
Backed out changeset aa66fda02aac (bug 1668136) for causing failures …
Browse files Browse the repository at this point in the history
…on content-visibility. CLOSED TREE

UltraBlame original commit: bc715251fc27da8e06b30c890b5383cb4dc88c85
  • Loading branch information
marco-c committed Nov 1, 2023
1 parent f9382da commit 9f73f5d
Show file tree
Hide file tree
Showing 16 changed files with 126 additions and 2,447 deletions.
37 changes: 0 additions & 37 deletions dom/base/DOMIntersectionObserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3707,26 +3707,6 @@ thresholdIndex
;
}
}
const
bool
temporarilyVisibleForScrolledIntoView
=
isContentVisibilityObserver
=
=
IsContentVisibilityObserver
:
:
Yes
&
&
target
-
>
TemporarilyVisibleForScrolledIntoViewDescendant
(
)
;
if
(
target
Expand All @@ -3737,9 +3717,6 @@ UpdateIntersectionObservation
this
thresholdIndex
)
|
|
temporarilyVisibleForScrolledIntoView
)
{
QueueIntersectionObserverEntry
Expand Down Expand Up @@ -3772,20 +3749,6 @@ thresholdIndex
intersectionRatio
)
;
if
(
temporarilyVisibleForScrolledIntoView
)
{
target
-
>
SetTemporarilyVisibleForScrolledIntoViewDescendant
(
false
)
;
}
}
}
}
Expand Down
49 changes: 0 additions & 49 deletions dom/base/Element.h
Original file line number Diff line number Diff line change
Expand Up @@ -4817,56 +4817,7 @@ reset
(
)
;
slots
-
>
mTemporarilyVisibleForScrolledIntoViewDescendant
=
false
;
}
}
bool
TemporarilyVisibleForScrolledIntoViewDescendant
(
)
const
{
const
auto
*
slots
=
GetExistingExtendedDOMSlots
(
)
;
return
slots
&
&
slots
-
>
mTemporarilyVisibleForScrolledIntoViewDescendant
;
}
void
SetTemporarilyVisibleForScrolledIntoViewDescendant
(
bool
aVisible
)
{
ExtendedDOMSlots
(
)
-
>
mTemporarilyVisibleForScrolledIntoViewDescendant
=
aVisible
;
}
MOZ_CAN_RUN_SCRIPT
bool
Expand Down
5 changes: 0 additions & 5 deletions dom/base/FragmentOrElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -665,11 +665,6 @@ bool
>
mVisibleForContentVisibility
;
bool
mTemporarilyVisibleForScrolledIntoViewDescendant
=
false
;
nsTHashMap
<
RefPtr
Expand Down
Loading

0 comments on commit 9f73f5d

Please sign in to comment.