Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: third_party/WebKit/Source/core/layout/ScrollAnchor.h

Issue 1647793002: Use ScrollAnchor in FrameView and PaintLayerScrollableArea. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@anchor-skeleton
Patch Set: move save/restore from LayoutBlockFlow into LayoutBlock Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ScrollAnchor.h
diff --git a/third_party/WebKit/Source/core/layout/ScrollAnchor.h b/third_party/WebKit/Source/core/layout/ScrollAnchor.h
index 4c1f6259327af790148a3e3a2e8f8c04c1d4780e..f129095879869c6640f184d2516478daabf84676 100644
--- a/third_party/WebKit/Source/core/layout/ScrollAnchor.h
+++ b/third_party/WebKit/Source/core/layout/ScrollAnchor.h
@@ -24,10 +24,10 @@ public:
// The LayoutObject we are currently anchored to. Lazily computed during
// save() and cached until the next call to clear().
- const LayoutObject* anchorObject() const { return m_anchorObject; }
+ LayoutObject* anchorObject() const { return m_anchorObject; }
// Invalidates the anchor.
- void clear() { m_anchorObject = nullptr; }
+ void clear();
// Records the anchor's location in relation to the scroller. Should be
// called when the scroller is about to be laid out.
@@ -45,7 +45,7 @@ private:
RawPtrWillBeMember<ScrollableArea> m_scroller;
// The LayoutObject we should anchor to. Lazily computed.
- const LayoutObject* m_anchorObject;
+ LayoutObject* m_anchorObject;
// Location of m_layoutObject relative to scroller at time of save().
DoublePoint m_savedRelativeOffset;

Powered by Google App Engine
This is Rietveld 408576698