| Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| index 5488a951af657152cd3f6241aaf0d61bd38b3f31..c0198e443398bfaeb4aef155df05565eca427916 100644
|
| --- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| @@ -512,13 +512,14 @@ void ChromeClientImpl::scheduleAnimationForFrame(LocalFrame* localRoot)
|
|
|
| IntRect ChromeClientImpl::viewportToScreen(const IntRect& rectInViewport) const
|
| {
|
| - IntRect screenRect(rectInViewport);
|
| + WebRect screenRect(rectInViewport);
|
|
|
| if (m_webView->client()) {
|
| + m_webView->client()->convertViewportToWindow(&screenRect);
|
| WebRect windowRect = m_webView->client()->windowRect();
|
| - screenRect.move(windowRect.x, windowRect.y);
|
| + screenRect.x += windowRect.x;
|
| + screenRect.y += windowRect.y;
|
| }
|
| -
|
| return screenRect;
|
| }
|
|
|
|
|