| Index: content/renderer/browser_plugin/browser_plugin.cc
|
| diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
|
| index 8ba5421f33aa700fe63e733024d9a5185ed74684..88a2a91421bc130d6f7e7ca7232125bf9f3d7cc8 100644
|
| --- a/content/renderer/browser_plugin/browser_plugin.cc
|
| +++ b/content/renderer/browser_plugin/browser_plugin.cc
|
| @@ -92,11 +92,12 @@ void BrowserPlugin::SetSrcAttribute(const std::string& src) {
|
| return;
|
| if (!src.empty()) {
|
| BrowserPluginManager::Get()->Send(
|
| - new BrowserPluginHostMsg_NavigateOrCreateGuest(
|
| + new BrowserPluginHostMsg_NavigateGuest(
|
| render_view_->GetRoutingID(),
|
| instance_id_,
|
| parent_frame_,
|
| - src));
|
| + src,
|
| + gfx::Size(width(), height())));
|
| }
|
| src_ = src;
|
| guest_crashed_ = false;
|
| @@ -329,6 +330,10 @@ void BrowserPlugin::updateGeometry(
|
| if (old_width == window_rect.width &&
|
| old_height == window_rect.height)
|
| return;
|
| + // TODO(fsamuel): Check if this is correct: When src is not set, we shouldn't
|
| + // send UpdateRect messages to the host.
|
| + if (src_.empty())
|
| + return;
|
|
|
| const size_t stride = skia::PlatformCanvas::StrideForWidth(window_rect.width);
|
| const size_t size = window_rect.height *
|
|
|