Index: Source/web/WebHelperPluginImpl.cpp |
diff --git a/Source/web/WebHelperPluginImpl.cpp b/Source/web/WebHelperPluginImpl.cpp |
index d4c487a1bc9ed42fdd307d5ba3bb72d34e3d5563..8c8197482ffa061298f97bfc5122111cfde9dcba 100644 |
--- a/Source/web/WebHelperPluginImpl.cpp |
+++ b/Source/web/WebHelperPluginImpl.cpp |
@@ -166,7 +166,7 @@ WebPlugin* WebHelperPluginImpl::getPlugin() |
WebCore::Widget* widget = toHTMLPlugInElement(node)->pluginWidget(); |
if (!widget) |
return 0; |
- WebPlugin* plugin = static_cast<WebPluginContainerImpl*>(widget)->plugin(); |
+ WebPlugin* plugin = toPluginContainerImpl(widget)->plugin(); |
ASSERT(plugin); |
// If the plugin is a placeholder, it is not useful to the caller, and it |
// could be replaced at any time. Therefore, do not return it. |