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

Unified Diff: third_party/WebKit/Source/core/frame/BrowserControls.cpp

Issue 2730573003: Moved FrameHost::m_visualViewport to Page (Closed)
Patch Set: Fixed some compile errors on mac and android Created 3 years, 9 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/BrowserControls.cpp
diff --git a/third_party/WebKit/Source/core/frame/BrowserControls.cpp b/third_party/WebKit/Source/core/frame/BrowserControls.cpp
index cc527fd93b3f8264d8381a761dba23eb8c0a652b..dd2a98fbcc166ffa59f2dfa6f70b0ffbc979301a 100644
--- a/third_party/WebKit/Source/core/frame/BrowserControls.cpp
+++ b/third_party/WebKit/Source/core/frame/BrowserControls.cpp
@@ -42,7 +42,7 @@ FloatSize BrowserControls::scrollBy(FloatSize pendingDelta) {
return pendingDelta;
float oldOffset = contentOffset();
- float pageScale = m_page->frameHost().visualViewport().scale();
+ float pageScale = m_page->visualViewport().scale();
// Update accumulated vertical scroll and apply it to browser controls
// Compute scroll delta in viewport space by applying page scale
« no previous file with comments | « third_party/WebKit/Source/core/dom/ViewportDescription.cpp ('k') | third_party/WebKit/Source/core/frame/DOMVisualViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698