| Index: webkit/glue/webplugin_impl.cc
|
| ===================================================================
|
| --- webkit/glue/webplugin_impl.cc (revision 15255)
|
| +++ webkit/glue/webplugin_impl.cc (working copy)
|
| @@ -202,7 +202,13 @@
|
| // webkit is ignored. This function is called when the plugin eventually
|
| // gets a parent.
|
| void WebPluginContainer::setParentVisible(bool visible) {
|
| + if (isParentVisible() == visible)
|
| + return; // No change.
|
| +
|
| WebCore::Widget::setParentVisible(visible);
|
| + if (!isSelfVisible())
|
| + return; // This widget has explicitely been marked as not visible.
|
| +
|
| if (visible)
|
| show();
|
| else
|
| @@ -646,10 +652,6 @@
|
| std::vector<gfx::Rect> cutout_rects;
|
| CalculateBounds(rect, &window_rect, &clip_rect, &cutout_rects);
|
|
|
| - // Notify the plugin that its parameters have changed.
|
| - delegate_->UpdateGeometry(webkit_glue::FromIntRect(window_rect),
|
| - webkit_glue::FromIntRect(clip_rect));
|
| -
|
| if (window_) {
|
| // Notify the window hosting the plugin (the WebViewDelegate) that
|
| // it needs to adjust the plugin, so that all the HWNDs can be moved
|
| @@ -664,6 +666,10 @@
|
| webview->delegate()->DidMove(webview, move);
|
| }
|
|
|
| + // Notify the plugin that its parameters have changed.
|
| + delegate_->UpdateGeometry(webkit_glue::FromIntRect(window_rect),
|
| + webkit_glue::FromIntRect(clip_rect));
|
| +
|
| // Initiate a download on the plugin url. This should be done for the
|
| // first update geometry sequence.
|
| if (first_geometry_update_) {
|
|
|