Index: Source/core/html/HTMLPlugInElement.cpp |
diff --git a/Source/core/html/HTMLPlugInElement.cpp b/Source/core/html/HTMLPlugInElement.cpp |
index 3008c33dd38ca36240b7e6ea3fb4de64059d84f3..c6ed4a557faac430d6d7ab4e8ab354539cba8e60 100644 |
--- a/Source/core/html/HTMLPlugInElement.cpp |
+++ b/Source/core/html/HTMLPlugInElement.cpp |
@@ -63,7 +63,7 @@ HTMLPlugInElement::~HTMLPlugInElement() |
bool HTMLPlugInElement::canProcessDrag() const |
{ |
- const PluginView* plugin = pluginWidget() && pluginWidget()->isPluginView() ? static_cast<const PluginView*>(pluginWidget()) : 0; |
+ const PluginView* plugin = pluginWidget() && pluginWidget()->isPluginView() ? toPluginView(pluginWidget()) : 0; |
return plugin ? plugin->canProcessDrag() : false; |
} |
@@ -220,7 +220,7 @@ bool HTMLPlugInElement::isKeyboardFocusable() const |
if (!document().page()) |
return false; |
- const PluginView* plugin = pluginWidget() && pluginWidget()->isPluginView() ? static_cast<const PluginView*>(pluginWidget()) : 0; |
+ const PluginView* plugin = pluginWidget() && pluginWidget()->isPluginView() ? toPluginView(pluginWidget()) : 0; |
if (plugin) |
return plugin->supportsKeyboardFocus(); |