| Index: third_party/WebKit/Source/web/WebPagePopupImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
|
| index 2b83ad5714484f6cab641241da89f1eebb9ea2b2..91e4b4c20edd7722baae74b2bc66cefbc05925fb 100644
|
| --- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
|
| @@ -55,6 +55,7 @@
|
| #include "platform/tracing/TraceEvent.h"
|
| #include "public/platform/WebCompositeAndReadbackAsyncCallback.h"
|
| #include "public/platform/WebCursorInfo.h"
|
| +#include "public/platform/WebFloatRect.h"
|
| #include "public/web/WebAXObject.h"
|
| #include "public/web/WebFrameClient.h"
|
| #include "public/web/WebViewClient.h"
|
| @@ -96,6 +97,12 @@ class PagePopupChromeClient final : public EmptyChromeClient {
|
| return rectInScreen;
|
| }
|
|
|
| + float windowToViewportScalar(const float scalarValue) const override {
|
| + WebFloatRect viewportRect(0, 0, scalarValue, 0);
|
| + m_popup->widgetClient()->convertWindowToViewport(&viewportRect);
|
| + return viewportRect.width;
|
| + }
|
| +
|
| void addMessageToConsole(LocalFrame*,
|
| MessageSource,
|
| MessageLevel,
|
|
|