Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 2248433002: Viewport resize anchoring should use the current layout viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rootScrollerCompositorWork
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698