Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(766)

Unified Diff: Source/core/html/PluginDocument.cpp

Issue 24056004: Refactoring: toPluginView and toPluginDocument implemented but not used. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698