Chromium Code Reviews| Index: Source/core/frame/FrameView.h |
| diff --git a/Source/core/frame/FrameView.h b/Source/core/frame/FrameView.h |
| index dffc6f79fa8f9ec0e1199240eb2218c26f5f2bbd..260a640f598ee036bd10b6c4cc3401a7b407be71 100644 |
| --- a/Source/core/frame/FrameView.h |
| +++ b/Source/core/frame/FrameView.h |
| @@ -307,6 +307,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(int); |
| + |
| + virtual IntPoint maximumScrollPosition() const OVERRIDE; |
| + |
| // ScrollableArea interface |
| virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) OVERRIDE; |
| virtual void getTickmarks(Vector<IntRect>&) const OVERRIDE; |
| @@ -488,6 +495,7 @@ private: |
| Vector<IntRect> m_tickmarks; |
| bool m_needsUpdateWidgetPositions; |
| + int m_topControlsViewportAdjustment; |
|
aelias_OOO_until_Jul13
2014/09/10 01:57:29
Please make this a float.
bokan
2014/09/10 13:51:52
Done.
|
| }; |
| inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) |