Index: chrome/renderer/plugins/plugin_placeholder.cc |
diff --git a/chrome/renderer/plugins/plugin_placeholder.cc b/chrome/renderer/plugins/plugin_placeholder.cc |
index eae3e0ef7d7ff630928b8a16f1e6b4a2b19d79fb..0e58e7286f22259d2ed56ea98f277df672257947 100644 |
--- a/chrome/renderer/plugins/plugin_placeholder.cc |
+++ b/chrome/renderer/plugins/plugin_placeholder.cc |
@@ -323,7 +323,7 @@ void PluginPlaceholder::ReplacePlugin(WebPlugin* new_plugin) { |
// The plug-in has been removed from the page. Destroy the old plug-in |
// (which will destroy us). |
- if (element.parentNode().isNull()) { |
+ if (!element.pluginContainer()) { |
plugin_->destroy(); |
return; |
} |