Index: Source/core/html/PluginDocument.cpp |
diff --git a/Source/core/html/PluginDocument.cpp b/Source/core/html/PluginDocument.cpp |
index b4334088459ff86b721eeaeb93555361ef26780f..2f8ae7e58c1f3449691303f7a9478e8e29f8788e 100644 |
--- a/Source/core/html/PluginDocument.cpp |
+++ b/Source/core/html/PluginDocument.cpp |
@@ -143,9 +143,9 @@ void PluginDocumentParser::finish() |
PluginView* PluginDocumentParser::pluginView() const |
{ |
- if (Widget* widget = static_cast<PluginDocument*>(document())->pluginWidget()) { |
+ if (Widget* widget = toPluginDocument(document())->pluginWidget()) { |
ASSERT_WITH_SECURITY_IMPLICATION(widget->isPluginContainer()); |
- return static_cast<PluginView*>(widget); |
+ return toPluginView(widget); |
} |
return 0; |
} |