Index: Source/web/WebPluginDocument.cpp |
diff --git a/Source/web/WebPluginDocument.cpp b/Source/web/WebPluginDocument.cpp |
index aa2fba394eeae6097993dff61845d6a9d5d3545d..2afa2533208349c7bf65900f751e826c773ea615 100644 |
--- a/Source/web/WebPluginDocument.cpp |
+++ b/Source/web/WebPluginDocument.cpp |
@@ -48,7 +48,7 @@ WebPlugin* WebPluginDocument::plugin() |
if (!isPluginDocument()) |
return 0; |
PluginDocument* doc = unwrap<PluginDocument>(); |
- WebPluginContainerImpl* container = static_cast<WebPluginContainerImpl*>(static_cast<PluginDocument*>(doc)->pluginWidget()); |
+ WebPluginContainerImpl* container = toPluginContainerImpl(static_cast<PluginDocument*>(doc)->pluginWidget()); |
return container->plugin(); |
} |