| Index: third_party/WebKit/Source/core/frame/FrameView.h
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
|
| index ad826b8bc2befd6cba9d011e0bf1e532da114ec1..e68b0404dcba61e5af054ec19db822be9d4be0ec 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.h
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.h
|
| @@ -31,6 +31,7 @@
|
| #include "core/frame/LayoutSubtreeRootList.h"
|
| #include "core/frame/RootFrameViewport.h"
|
| #include "core/layout/LayoutAnalyzer.h"
|
| +#include "core/layout/ScrollAnchor.h"
|
| #include "core/paint/PaintInvalidationCapableScrollableArea.h"
|
| #include "core/paint/PaintPhase.h"
|
| #include "platform/RuntimeEnabledFeatures.h"
|
| @@ -590,6 +591,8 @@ public:
|
| // Viewport size that should be used for viewport units (i.e. 'vh'/'vw').
|
| FloatSize viewportSizeForViewportUnits() const;
|
|
|
| + ScrollAnchor& scrollAnchor() { return m_scrollAnchor; }
|
| +
|
| protected:
|
| // Scroll the content via the compositor.
|
| bool scrollContentsFastPath(const IntSize& scrollDelta);
|
| @@ -761,6 +764,8 @@ private:
|
| LayoutBox& boxForScrollControlPaintInvalidation() const override;
|
| LayoutScrollbarPart* resizer() const override { return nullptr; }
|
|
|
| + bool scrollAnchoringEnabled() const;
|
| +
|
| LayoutSize m_size;
|
|
|
| typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet;
|
| @@ -901,6 +906,7 @@ private:
|
| RefPtr<ClipPaintPropertyNode> m_contentClip;
|
|
|
| bool m_isUpdatingAllLifecyclePhases;
|
| + ScrollAnchor m_scrollAnchor;
|
| };
|
|
|
| inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count)
|
|
|