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

Unified Diff: Source/web/WebPluginDocument.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/WebPluginContainerImpl.h ('k') | Source/web/WebPluginScrollbarImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebPluginDocument.cpp
diff --git a/Source/web/WebPluginDocument.cpp b/Source/web/WebPluginDocument.cpp
index aa2fba394eeae6097993dff61845d6a9d5d3545d..2afa2533208349c7bf65900f751e826c773ea615 100644
--- a/Source/web/WebPluginDocument.cpp
+++ b/Source/web/WebPluginDocument.cpp
@@ -48,7 +48,7 @@ WebPlugin* WebPluginDocument::plugin()
if (!isPluginDocument())
return 0;
PluginDocument* doc = unwrap<PluginDocument>();
- WebPluginContainerImpl* container = static_cast<WebPluginContainerImpl*>(static_cast<PluginDocument*>(doc)->pluginWidget());
+ WebPluginContainerImpl* container = toPluginContainerImpl(static_cast<PluginDocument*>(doc)->pluginWidget());
return container->plugin();
}
« no previous file with comments | « Source/web/WebPluginContainerImpl.h ('k') | Source/web/WebPluginScrollbarImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698