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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.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/paint/PaintLayerScrollableArea.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
index ba6b5146cb375691b7c02983bac8fbf0de689151..ebd01e1c347157c9bcc6d275efdeee30a85b7051 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
@@ -46,6 +46,7 @@
#include "core/CoreExport.h"
#include "core/layout/LayoutBox.h"
+#include "core/layout/ScrollAnchor.h"
#include "core/paint/PaintInvalidationCapableScrollableArea.h"
#include "core/paint/PaintLayerFragment.h"
#include "platform/heap/Handle.h"
@@ -333,6 +334,7 @@ public:
IntRect rectForVerticalScrollbar(const IntRect& borderBoxRect) const;
Widget* widget() override;
+ ScrollAnchor& scrollAnchor() { return m_scrollAnchor; }
bool isPaintLayerScrollableArea() const override { return true; }
DECLARE_VIRTUAL_TRACE();
@@ -409,6 +411,8 @@ private:
// LayoutObject to hold our custom resizer.
LayoutScrollbarPart* m_resizer;
+ ScrollAnchor m_scrollAnchor;
+
#if ENABLE(ASSERT)
bool m_hasBeenDisposed;
#endif

Powered by Google App Engine
This is Rietveld 408576698