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

Unified Diff: third_party/WebKit/Source/web/InspectorOverlay.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/web/InspectorOverlay.cpp
diff --git a/third_party/WebKit/Source/web/InspectorOverlay.cpp b/third_party/WebKit/Source/web/InspectorOverlay.cpp
index 84e6e40cfbb8087fe151a4c0a831bbc54209b5cf..5e0c99ec656818f1eb8710cf340f6571450bbc04 100644
--- a/third_party/WebKit/Source/web/InspectorOverlay.cpp
+++ b/third_party/WebKit/Source/web/InspectorOverlay.cpp
@@ -480,7 +480,7 @@ void InspectorOverlay::drawViewSize()
float InspectorOverlay::windowToViewportScale() const
{
- return m_webViewImpl->chromeClient().windowToViewportScalar(1.0f);
+ return m_webViewImpl->chromeClient().windowToViewportScalar(*m_webViewImpl->mainFrameImpl()->frameView(), 1.0f);
}
Page* InspectorOverlay::overlayPage()
« no previous file with comments | « third_party/WebKit/Source/web/DateTimeChooserImpl.cpp ('k') | third_party/WebKit/Source/web/PopupMenuImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698