Index: third_party/WebKit/Source/core/layout/LayoutBox.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h |
index 61509f857388094fc55b179128c6d19bd2db9971..879525256f4fa299be5f143dbb14346622db1e89 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h |
@@ -425,7 +425,9 @@ public: |
void scrollToOffset(const DoubleSize&, ScrollBehavior = ScrollBehaviorInstant); |
void scrollByRecursively(const DoubleSize& delta, ScrollOffsetClamping = ScrollOffsetUnclamped); |
- void scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX, const ScrollAlignment& alignY, ScrollType = ProgrammaticScroll); |
+ // If makeVisibleInVisualViewport is set, the visual viewport will be scrolled |
+ // if required to make the rect visible. |
+ void scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX, const ScrollAlignment& alignY, ScrollType = ProgrammaticScroll, bool makeVisibleInVisualViewport = true); |
LayoutRectOutsets marginBoxOutsets() const override { return m_marginBoxOutsets; } |
LayoutUnit marginTop() const override { return m_marginBoxOutsets.top(); } |