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

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: Forgot to add test file 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8c49dc36344679d0e98243295936aad2357daca9..670256dbb1fa863e29bc9175bfebc68f3df597b8 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -574,6 +574,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(); }
@@ -893,7 +899,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698