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

Unified Diff: third_party/WebKit/Source/core/inspector/DevToolsHost.cpp

Issue 2290233007: Move convertViewportToWindow and convertWindowToViewport from (Closed)
Patch Set: add client to WebSharedWorkerImpl Created 4 years, 3 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/inspector/DevToolsHost.cpp
diff --git a/third_party/WebKit/Source/core/inspector/DevToolsHost.cpp b/third_party/WebKit/Source/core/inspector/DevToolsHost.cpp
index 430349a7007d8cb1e8c2492b22a2b33c5a8153fa..da5d6d70699f3446c6d1b973f37ce76d622baded 100644
--- a/third_party/WebKit/Source/core/inspector/DevToolsHost.cpp
+++ b/third_party/WebKit/Source/core/inspector/DevToolsHost.cpp
@@ -169,7 +169,7 @@ float DevToolsHost::zoomFactor()
// Cancel the device scale factor applied to the zoom factor in
// use-zoom-for-dsf mode.
const HostWindow* hostWindow = m_frontendFrame->view()->getHostWindow();
- float windowToViewportRatio = hostWindow->windowToViewportScalar(1.0f);
+ float windowToViewportRatio = hostWindow->windowToViewportScalar(*m_frontendFrame->view(), 1.0f);
return zoomFactor / windowToViewportRatio;
}

Powered by Google App Engine
This is Rietveld 408576698