commit 00e7e9bc54dd032155b4b8cf24dfcc6ca48374ed
parent 2d263c277a312420718d1f524ab7d03d4353936d
Author: Botond Ballo <botond@mozilla.com>
Date: Thu, 13 Nov 2025 04:59:07 +0000
Bug 1730749 - Remove nsDisplayStickyPosition::mWrStickyAnimationId. r=mstange,layout-reviewers,emilio
This is no longer used now that the creation of the sticky animation id
happens in ClipManager.
Differential Revision: https://phabricator.services.mozilla.com/D254154
Diffstat:
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/layout/painting/nsDisplayList.cpp b/layout/painting/nsDisplayList.cpp
@@ -5812,8 +5812,7 @@ nsDisplayStickyPosition::nsDisplayStickyPosition(
aContainerASRType),
mContainerASR(aContainerASR),
mClippedToDisplayPort(aClippedToDisplayPort),
- mShouldFlatten(false),
- mWrStickyAnimationId(0) {
+ mShouldFlatten(false) {
MOZ_COUNT_CTOR(nsDisplayStickyPosition);
}
diff --git a/layout/painting/nsDisplayList.h b/layout/painting/nsDisplayList.h
@@ -5744,8 +5744,7 @@ class nsDisplayStickyPosition final : public nsDisplayOwnLayer {
: nsDisplayOwnLayer(aBuilder, aOther),
mContainerASR(aOther.mContainerASR),
mClippedToDisplayPort(aOther.mClippedToDisplayPort),
- mShouldFlatten(false),
- mWrStickyAnimationId(0) {
+ mShouldFlatten(false) {
MOZ_COUNT_CTOR(nsDisplayStickyPosition);
}
@@ -5817,13 +5816,6 @@ class nsDisplayStickyPosition final : public nsDisplayOwnLayer {
// True if this item should be flattened away.
bool mShouldFlatten;
-
- // Used for APZ to animate the sticky element in the compositor
- // for purposes such as dynamic toolbar movement and (in the future)
- // overscroll-related adjustment. Unlike nsDisplayOwnLayer::mWrAnimationId,
- // this does not create a WebRender ReferenceFrame, which is important
- // because sticky elements do not establish Gecko reference frames either.
- uint64_t mWrStickyAnimationId;
};
class nsDisplayViewTransitionCapture final : public nsDisplayOwnLayer {