Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(562)

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2333353002: Don't set view_screen_rect_ on RequestMove ACK (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698