Index: content/browser/renderer_host/render_widget_host_view_win.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc |
index 44ab814e778bf6ef23224ee7e509b70af3cff59b..6812ef479e5d95c9d75891e245d90d26d8be5732 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_win.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc |
@@ -537,7 +537,7 @@ RenderWidgetHostViewWin::GetNativeViewAccessible() { |
} |
void RenderWidgetHostViewWin::MovePluginWindows( |
- const gfx::Point& scroll_offset, |
+ const gfx::Vector2d& scroll_offset, |
const std::vector<webkit::npapi::WebPluginGeometry>& plugin_window_moves) { |
MovePluginWindowsHelper(m_hWnd, plugin_window_moves); |
} |
@@ -713,9 +713,8 @@ void RenderWidgetHostViewWin::Redraw() { |
RedrawWindow(NULL, damage_region, RDW_UPDATENOW | RDW_NOCHILDREN); |
// Send the invalid rect in screen coordinates. |
- gfx::Rect screen_rect = GetViewBounds(); |
gfx::Rect invalid_screen_rect(damage_bounds); |
- invalid_screen_rect.Offset(screen_rect.x(), screen_rect.y()); |
+ invalid_screen_rect.Offset(GetViewBounds().OffsetFromOrigin()); |
PaintPluginWindowsHelper(m_hWnd, invalid_screen_rect); |
} |