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

Unified Diff: third_party/WebKit/Source/web/PopupMenuImpl.cpp

Issue 2290233007: Move convertViewportToWindow and convertWindowToViewport from (Closed)
Patch Set: Created 4 years, 4 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/PopupMenuImpl.cpp
diff --git a/third_party/WebKit/Source/web/PopupMenuImpl.cpp b/third_party/WebKit/Source/web/PopupMenuImpl.cpp
index af349b9e7f6245aae326b0df7cf01ac433649477..b69e5c84a6fcfb0a50cf92d88ce79583ce7c3d72 100644
--- a/third_party/WebKit/Source/web/PopupMenuImpl.cpp
+++ b/third_party/WebKit/Source/web/PopupMenuImpl.cpp
@@ -276,7 +276,7 @@ void PopupMenuImpl::writeDocument(SharedBuffer* data)
addProperty("anchorRectInScreen", anchorRectInScreen, data);
float zoom = zoomFactor();
- float scaleFactor = m_chromeClient->windowToViewportScalar(1.f);
+ float scaleFactor = m_chromeClient->windowToViewportScalar(1.f, ownerElement.document().frame()->view());
addProperty("zoomFactor", zoom / scaleFactor, data);
bool isRTL = !ownerStyle->isLeftToRightDirection();
addProperty("isRTL", isRTL, data);

Powered by Google App Engine
This is Rietveld 408576698