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

Unified Diff: third_party/WebKit/Source/web/WebInputEventConversion.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/web/WebInputEventConversion.cpp
diff --git a/third_party/WebKit/Source/web/WebInputEventConversion.cpp b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
index 819d69611709e83ee6df427fc9331337c5f3c5f7..c27e8e09b973746e630ecc75bfb7f8f4544615e8 100644
--- a/third_party/WebKit/Source/web/WebInputEventConversion.cpp
+++ b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
@@ -37,7 +37,6 @@
#include "core/events/MouseEvent.h"
#include "core/events/TouchEvent.h"
#include "core/events/WheelEvent.h"
-#include "core/frame/FrameHost.h"
#include "core/frame/FrameView.h"
#include "core/frame/VisualViewport.h"
#include "core/layout/api/LayoutItem.h"
@@ -70,11 +69,8 @@ FloatPoint frameTranslation(const FrameViewBase* frameViewBase) {
if (rootView) {
scale = rootView->inputEventsScaleFactor();
offset = FloatSize(rootView->inputEventsOffsetForEmulation());
- visualViewport = flooredIntPoint(rootView->page()
- ->frameHost()
- .visualViewport()
- .visibleRect()
- .location());
+ visualViewport = flooredIntPoint(
+ rootView->page()->visualViewport().visibleRect().location());
overscrollOffset = rootView->page()->chromeClient().elasticOverscroll();
}
}
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698