| 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 39d7b80a7bac4561f131de5fbb5c7e609133d4b5..15cc1b3b8d1b96aa6ca4f6d6472d3255ed4f81ca 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(*ownerElement.document().frame()->view(), 1.f);
|
| addProperty("zoomFactor", zoom / scaleFactor, data);
|
| bool isRTL = !ownerStyle->isLeftToRightDirection();
|
| addProperty("isRTL", isRTL, data);
|
|
|