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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetBase.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
« no previous file with comments | « third_party/WebKit/Source/web/PageOverlay.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebFrameWidgetBase.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp b/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp
index 98339a4cc2cb5e457c9d25370b05a09a6e51bd7f..3ed51207124e4c98c188899206b15aa2a940e50d 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp
@@ -140,8 +140,7 @@ void WebFrameWidgetBase::dragSourceEndedAt(const WebPoint& pointInViewport,
return;
}
WebFloatPoint pointInRootFrame(
- page()->frameHost().visualViewport().viewportToRootFrame(
- pointInViewport));
+ page()->visualViewport().viewportToRootFrame(pointInViewport));
WebMouseEvent fakeMouseMove(WebInputEvent::MouseMove, pointInRootFrame,
WebFloatPoint(screenPoint.x, screenPoint.y),
@@ -216,8 +215,7 @@ WebDragOperation WebFrameWidgetBase::dragTargetDragEnterOrOver(
WebPoint WebFrameWidgetBase::viewportToRootFrame(
const WebPoint& pointInViewport) const {
- return page()->frameHost().visualViewport().viewportToRootFrame(
- pointInViewport);
+ return page()->visualViewport().viewportToRootFrame(pointInViewport);
}
WebViewImpl* WebFrameWidgetBase::view() const {
« no previous file with comments | « third_party/WebKit/Source/web/PageOverlay.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698