commit 20da82e92918babdf4036aa22b7cab474765e654
parent 3f6df22bceb39f00baf22b12e0df4bcef0dc2e4a
Author: Timothy Nikkel <tnikkel@gmail.com>
Date: Thu, 20 Nov 2025 06:45:05 +0000
Bug 2001270. Remove unused ASRKind::Root. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D273381
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/layout/painting/nsDisplayList.h b/layout/painting/nsDisplayList.h
@@ -256,11 +256,12 @@ struct ActiveScrolledRoot {
static const ActiveScrolledRoot* GetStickyASRFromFrame(
nsIFrame* aStickyFrame);
- enum class ASRKind { Root, Scroll, Sticky };
+ enum class ASRKind { Scroll, Sticky };
RefPtr<const ActiveScrolledRoot> mParent;
nsIFrame* mFrame = nullptr;
- ASRKind mKind = ASRKind::Root;
+ // This gets updated by both functions that can create this struct.
+ ASRKind mKind = ASRKind::Scroll;
NS_INLINE_DECL_REFCOUNTING(ActiveScrolledRoot)