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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 731413002: Adjust DOMWindow properties to emulate old style pinch semantics (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changes from feedback Created 6 years, 1 month 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: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index e1f311ef047005484a35ee566f14f782177f2377..78e0461798c473759a7c1d0349f0010965634706 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -1531,6 +1531,7 @@ void FrameView::scrollElementToRect(Element* element, const IntRect& rect)
bool pinchVirtualViewportEnabled = m_frame->settings()->pinchVirtualViewportEnabled();
+ // FIXME: This needs an isMainFrame() check as well. crbug.com/378776.
if (pinchVirtualViewportEnabled) {
PinchViewport& pinchViewport = m_frame->page()->frameHost().pinchViewport();

Powered by Google App Engine
This is Rietveld 408576698