diff options
author | Moonchild <moonchild@palemoon.org> | 2022-09-30 12:24:19 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-09-30 12:24:19 +0000 |
commit | bdc924d25ee6d0bbe6c780c1d88b60db573562e7 (patch) | |
tree | 426c983ca8bb4dd32d4f8db93625a9a07e11367d /layout/generic/nsIFrame.h | |
parent | b83dd4e5e8b95f61fa2c25b1635793f919e4f101 (diff) | |
download | uxp-scroll-anchoring-wip.tar.gz |
WIP: basic scroll-anchoring attempt.scroll-anchoring-wip
This is incomplete and won't build due to prerequisites.
Diffstat (limited to 'layout/generic/nsIFrame.h')
-rw-r--r-- | layout/generic/nsIFrame.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layout/generic/nsIFrame.h b/layout/generic/nsIFrame.h index 1c5dbbe9ac..db95478bd0 100644 --- a/layout/generic/nsIFrame.h +++ b/layout/generic/nsIFrame.h @@ -861,6 +861,7 @@ public: } else { mRect = aRect; } + MaybeNotifyScrollAnchor(); } /** * Set this frame's rect from a logical rect in its own writing direction @@ -922,6 +923,7 @@ public: // the top right of the frame instead of the top left. mRect.MoveTo(aPt.GetPhysicalPoint(aWritingMode, aContainerSize - mRect.Size())); + MaybeNotifyScrollAnchor(); } /** @@ -2742,6 +2744,8 @@ public: const nsRect* aFrameDamageRect = nullptr, uint32_t aFlags = 0); + void MaybeNotifyScrollAnchor(); + /** * Returns a rect that encompasses everything that might be painted by * this frame. This includes this frame, all its descendant frames, this |