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

Unified Diff: Source/web/InspectorEmulationAgent.cpp

Issue 1025543002: Remove old pinch-zoom paths from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 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 | « Source/web/ExternalPopupMenuTest.cpp ('k') | Source/web/InspectorOverlayImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/InspectorEmulationAgent.cpp
diff --git a/Source/web/InspectorEmulationAgent.cpp b/Source/web/InspectorEmulationAgent.cpp
index d27751e2b01409a4ac6e6e58d74ccf34317e0236..b407742984ddc1e3ab9142f35ace4b772e6939ce 100644
--- a/Source/web/InspectorEmulationAgent.cpp
+++ b/Source/web/InspectorEmulationAgent.cpp
@@ -102,10 +102,7 @@ void InspectorEmulationAgent::viewportChanged()
FrameHost& host = m_webViewImpl->page()->frameHost();
IntSize contentsSize = view->contentsSize();
FloatPoint scrollOffset;
- if (host.settings().pinchVirtualViewportEnabled())
- scrollOffset = host.pinchViewport().visibleRectInDocument().location();
- else
- scrollOffset = view->visibleContentRect().location();
+ scrollOffset = host.pinchViewport().visibleRectInDocument().location();
RefPtr<TypeBuilder::Emulation::Viewport> viewport = TypeBuilder::Emulation::Viewport::create()
.setScrollX(scrollOffset.x())
« no previous file with comments | « Source/web/ExternalPopupMenuTest.cpp ('k') | Source/web/InspectorOverlayImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698