Chromium Code Reviews| 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 7aff9694926355db292b377ca67978c42f7bb2cb..505c6b6c9d8e6ccab258937619222c9c5b29362a 100644 |
| --- a/third_party/WebKit/Source/web/PopupMenuImpl.cpp |
| +++ b/third_party/WebKit/Source/web/PopupMenuImpl.cpp |
| @@ -294,6 +294,9 @@ void PopupMenuImpl::writeDocument(SharedBuffer* data) |
| PagePopupClient::addString("],\n", data); |
| addProperty("anchorRectInScreen", anchorRectInScreen, data); |
| + IntRect inScreen = m_chromeClient->viewportToScreen(IntRect(0, 0, 100, 0)); |
| + float scaleFactor = 100.f / inScreen.width(); |
| + addProperty("scaleFactor", scaleFactor, data); |
|
tkent
2015/11/18 07:06:39
I agree that we need to pass scale-factor in addit
|
| bool isRTL = !ownerStyle->isLeftToRightDirection(); |
| addProperty("isRTL", isRTL, data); |
| addProperty("paddingStart", isRTL ? ownerElement.clientPaddingRight().toDouble() : ownerElement.clientPaddingLeft().toDouble(), data); |