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 7d166a60ae0f8498db267b22cc0918ca378dcc94..3b288b04a13e5294b5cbe07d8161bd1c1abb04f9 100644 |
--- a/content/browser/browser_plugin/browser_plugin_guest.cc |
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc |
@@ -1428,15 +1428,10 @@ void BrowserPluginGuest::OnResizeGuest( |
} |
// Invalid damage buffer means we are in HW compositing mode, |
// so just resize the WebContents and repaint if needed. |
- if (!base::SharedMemory::IsHandleValid(params.damage_buffer_handle)) { |
- if (!params.view_rect.size().IsEmpty()) |
- GetWebContents()->GetView()->SizeContents(params.view_rect.size()); |
- if (params.repaint) |
- Send(new ViewMsg_Repaint(routing_id(), params.view_rect.size())); |
- return; |
- } |
- SetDamageBuffer(params); |
- GetWebContents()->GetView()->SizeContents(params.view_rect.size()); |
+ if (base::SharedMemory::IsHandleValid(params.damage_buffer_handle)) |
+ SetDamageBuffer(params); |
+ if (!params.view_rect.size().IsEmpty()) |
+ GetWebContents()->GetView()->SizeContents(params.view_rect.size()); |
alexst (slow to review)
2013/12/03 17:10:30
Seems like the old code sized contents and set the
|
if (params.repaint) |
Send(new ViewMsg_Repaint(routing_id(), params.view_rect.size())); |
} |