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

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

Issue 2695493003: Ensure FrameView scrollbars are updated when changing device emulation modes (Closed)
Patch Set: address comments Created 3 years, 10 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 f9384441a4b4d29904e5cc957f16cb11a85b69d3..5d2aa73bb171606a0ec5570651f445d9b0262ff9 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -831,6 +831,10 @@ class CORE_EXPORT FrameView final
// Returns the GeometryMapper associated with the root local frame.
GeometryMapper& geometryMapper();
+ // The visual viewport can supply scrollbars which affect the existence of
+ // our scrollbars (see: computeScrollbarExistence).
+ void visualViewportScrollbarsChanged();
+
protected:
// Scroll the content via the compositor.
bool scrollContentsFastPath(const IntSize& scrollDelta);
@@ -1206,6 +1210,8 @@ class CORE_EXPORT FrameView final
std::unique_ptr<GeometryMapper> m_geometryMapper;
Member<PrintContext> m_printContext;
+
+ FRIEND_TEST_ALL_PREFIXES(WebViewTest, DeviceEmulationResetScrollbars);
};
inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) {
« 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