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

Unified Diff: Source/web/WebHelperPluginImpl.cpp

Issue 23570006: Refactoring: Add convenience method toPluginContainerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rework with comments 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
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698