Index: Source/web/WebPluginContainerImpl.cpp |
diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp |
index f227705385a922aabfabcb7b8fbb89ed22cfa394..b2ec8a63c7b8138086c44bf63087763e52058324 100644 |
--- a/Source/web/WebPluginContainerImpl.cpp |
+++ b/Source/web/WebPluginContainerImpl.cpp |
@@ -270,6 +270,8 @@ void WebPluginContainerImpl::setParent(Widget* widget) |
Widget::setParent(widget); |
if (widget) |
reportGeometry(); |
+ else if (m_webPlugin) |
+ m_webPlugin->containerDidDetachFromParent(); |
} |
void WebPluginContainerImpl::setPlugin(WebPlugin* plugin) |
@@ -915,4 +917,9 @@ WebCore::IntRect WebPluginContainerImpl::windowClipRect() const |
return clipRect; |
} |
+bool WebPluginContainerImpl::pluginShouldPersist() const |
+{ |
+ return m_webPlugin->shouldPersist(); |
+} |
+ |
} // namespace blink |