Index: content/plugin/webplugin_proxy.cc |
diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc |
index c74af5b0863a35cb624951946b5463f068fd09b2..0d5ed27443a54abba12c180252c8c79840a8fb00 100644 |
--- a/content/plugin/webplugin_proxy.cc |
+++ b/content/plugin/webplugin_proxy.cc |
@@ -349,7 +349,7 @@ void WebPluginProxy::Paint(const gfx::Rect& rect) { |
// Clear the damaged area so that if the plugin doesn't paint there we won't |
// end up with the old values. |
gfx::Rect offset_rect = rect; |
- offset_rect.Offset(delegate_->GetRect().origin()); |
+ offset_rect.Offset(delegate_->GetRect().OffsetFromOrigin()); |
#if defined(OS_MACOSX) |
CGContextSaveGState(windowless_context()); |
// It is possible for windowless_contexts_ to change during plugin painting |