Index: third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp |
index 15d82af2929e9db8bedd87afde10ef58787f2464..52f9c00f4f41453913967507eb2907a84714e51e 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp |
@@ -114,8 +114,10 @@ void HTMLPlugInElement::setPersistedPluginWidget(Widget* widget) |
#if ENABLE(OILPAN) |
unregisterAsRenderlessIfNeeded(); |
registerAsRenderless(widget); |
- if (m_persistedPluginWidget) |
+ if (m_persistedPluginWidget) { |
+ m_persistedPluginWidget->hide(); |
m_persistedPluginWidget->dispose(); |
+ } |
#endif |
m_persistedPluginWidget = widget; |
} |