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 a50936e07fe2b9c886a1eca13bdac53955e26c6d..f1a79c48decf2c7e988579b906f7d69e0832b063 100644 |
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
@@ -581,9 +581,9 @@ IntRect ChromeClientImpl::viewportToScreen(const IntRect& rectInViewport, |
if (client) { |
client->convertViewportToWindow(&screenRect); |
- WebRect windowRect = client->windowRect(); |
- screenRect.x += windowRect.x; |
- screenRect.y += windowRect.y; |
+ WebRect viewRect = client->viewRect(); |
+ screenRect.x += viewRect.x; |
+ screenRect.y += viewRect.y; |
} |
return screenRect; |