| 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 7cf81e9a6ff81b8a5ea70ba08710466ae6e12505..88dcd902fae88c5f2f8dd20691ed195d9b7e5357 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.h
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.h
|
| @@ -572,6 +572,12 @@ public:
|
| // deltas from CC). For typical scrolling cases, use getScrollableArea().
|
| ScrollableArea* layoutViewportScrollableArea();
|
|
|
| + // If this is the main frame, this will return the RootFrameViewport used
|
| + // to scroll the main frame. Otherwise returns nullptr. Unless you need a
|
| + // unique method on RootFrameViewport, you should probably use
|
| + // getScrollableArea.
|
| + RootFrameViewport* getRootFrameViewport();
|
| +
|
| int viewportWidth() const;
|
|
|
| LayoutAnalyzer* layoutAnalyzer() { return m_analyzer.get(); }
|
| @@ -889,7 +895,7 @@ private:
|
| // Exists only on root frame.
|
| // TODO(bokan): crbug.com/484188. We should specialize FrameView for the
|
| // main frame.
|
| - Member<ScrollableArea> m_viewportScrollableArea;
|
| + Member<RootFrameViewport> m_viewportScrollableArea;
|
|
|
| // This frame's bounds in the root frame's content coordinates, clipped
|
| // recursively through every ancestor view.
|
|
|