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

Unified Diff: third_party/WebKit/Source/core/input/GestureManager.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/input/GestureManager.cpp
diff --git a/third_party/WebKit/Source/core/input/GestureManager.cpp b/third_party/WebKit/Source/core/input/GestureManager.cpp
index fec1b85150bcf12232aa276fc7fa700656876e7d..92a522770e6c91036fbfa9f9fea632286ddce102 100644
--- a/third_party/WebKit/Source/core/input/GestureManager.cpp
+++ b/third_party/WebKit/Source/core/input/GestureManager.cpp
@@ -294,7 +294,7 @@ WebInputEventResult GestureManager::handleGestureTap(
preDispatchStyleVersion != m_frame->document()->styleVersion();
IntPoint tappedPositionInViewport =
- frameHost()->visualViewport().rootFrameToViewport(tappedPosition);
+ m_frame->page()->visualViewport().rootFrameToViewport(tappedPosition);
m_frame->chromeClient().showUnhandledTapUIIfNeeded(
tappedPositionInViewport, tappedNode, domTreeChanged || styleChanged);
}

Powered by Google App Engine
This is Rietveld 408576698