Index: Source/core/html/PluginDocument.cpp |
diff --git a/Source/core/html/PluginDocument.cpp b/Source/core/html/PluginDocument.cpp |
index 60a2014414892028b25dbbb28ddc0e495bc74ac6..5da01a5ce1d5cd015c517fc0ad8c9b58c658fe29 100644 |
--- a/Source/core/html/PluginDocument.cpp |
+++ b/Source/core/html/PluginDocument.cpp |
@@ -166,9 +166,9 @@ PassRefPtrWillBeRawPtr<DocumentParser> PluginDocument::createParser() |
Widget* PluginDocument::pluginWidget() |
{ |
- if (m_pluginNode && m_pluginNode->renderer()) { |
- ASSERT(m_pluginNode->renderer()->isEmbeddedObject()); |
- return toLayoutEmbeddedObject(m_pluginNode->renderer())->widget(); |
+ if (m_pluginNode && m_pluginNode->layoutObject()) { |
+ ASSERT(m_pluginNode->layoutObject()->isEmbeddedObject()); |
+ return toLayoutEmbeddedObject(m_pluginNode->layoutObject())->widget(); |
} |
return 0; |
} |