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

Unified Diff: content/browser/browser_plugin/browser_plugin_embedder_helper.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_embedder_helper.cc
diff --git a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
index aa6f680f15c90eda6b06d772763f34cc0ad29d3f..dcae05a5df6c68fbbd8173e48671417a69e254d4 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
+++ b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
@@ -92,8 +92,10 @@ void BrowserPluginEmbedderHelper::OnHandleInputEvent(
// Convert the window coordinates into screen coordinates.
gfx::Rect guest_screen_rect(*guest_rect);
- if (rvh->GetView())
- guest_screen_rect.Offset(rvh->GetView()->GetViewBounds().origin());
+ if (rvh->GetView()) {
+ guest_screen_rect.Offset(
+ rvh->GetView()->GetViewBounds().OffsetFromOrigin());
+ }
IPC::Message* reply_message =
IPC::SyncMessage::GenerateReply(&message);

Powered by Google App Engine
This is Rietveld 408576698