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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 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: content/browser/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index 86c3144be0facce626bb6bdd73a4a607d189416c..4919b1ff5c39ac27c7039d9706454190b627052b 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -387,7 +387,7 @@ void BrowserPluginGuest::ShowWidget(RenderViewHost* render_view_host,
int route_id,
const gfx::Rect& initial_pos) {
gfx::Rect screen_pos(initial_pos);
- screen_pos.Offset(guest_rect_.origin());
+ screen_pos.Offset(guest_rect_.OffsetFromOrigin());
static_cast<WebContentsImpl*>(web_contents())->ShowCreatedWidget(route_id,
screen_pos);
}

Powered by Google App Engine
This is Rietveld 408576698