Index: Source/core/frame/FrameView.h |
diff --git a/Source/core/frame/FrameView.h b/Source/core/frame/FrameView.h |
index 4d14fb517a48249d8299a9bb5a1ba1859e8aa169..509b9dc0e099a29c5786010dcf2c1df239ece37d 100644 |
--- a/Source/core/frame/FrameView.h |
+++ b/Source/core/frame/FrameView.h |
@@ -313,6 +313,13 @@ public: |
// If |m_tickmarks| is empty, the default behavior is restored. |
void setTickmarks(const Vector<IntRect>& tickmarks) { m_tickmarks = tickmarks; } |
+ // Since the compositor can resize the viewport due to top controls and |
+ // commit scroll offsets before a WebView::resize occurs, we need to adjust |
+ // our scroll extents to prevent clamping the scroll offsets. |
+ void setTopControlsViewportAdjustment(float); |
+ |
+ virtual IntPoint maximumScrollPosition() const OVERRIDE; |
+ |
// ScrollableArea interface |
virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) OVERRIDE; |
virtual void getTickmarks(Vector<IntRect>&) const OVERRIDE; |
@@ -506,6 +513,7 @@ private: |
Vector<IntRect> m_tickmarks; |
bool m_needsUpdateWidgetPositions; |
+ float m_topControlsViewportAdjustment; |
}; |
inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) |