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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.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/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 7c7efe71daca02d94d38e5d1c47b0f2dc5e0fb82..1145a798db6cb6127709bcbe3124aac39ce568a2 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -1794,7 +1794,7 @@ WebInputEventResult EventHandler::sendContextMenuEventForKey(
FrameSelection& selection = m_frame->selection();
Position start =
selection.computeVisibleSelectionInDOMTreeDeprecated().start();
- VisualViewport& visualViewport = frameHost()->visualViewport();
+ VisualViewport& visualViewport = m_frame->page()->visualViewport();
if (!overrideTargetElement && start.anchorNode() &&
(selection.computeVisibleSelectionInDOMTreeDeprecated()
« no previous file with comments | « third_party/WebKit/Source/core/html/ImageDocument.cpp ('k') | third_party/WebKit/Source/core/input/GestureManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698