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

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: 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 7aca56d80827869d1fb226204b3c8aaeb201655e..a1d9c9f55742f59acbdfcbe806ed2dc87ca8f74e 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"
@@ -330,6 +331,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();
@@ -371,6 +373,8 @@ private:
// PaintInvalidationCapableScrollableArea
LayoutBox& boxForScrollControlPaintInvalidation() const { return box(); }
+ bool scrollAnchoringEnabled() const;
+
PaintLayer& m_layer;
// Keeps track of whether the layer is currently resizing, so events can cause resizing to start and stop.
@@ -406,6 +410,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