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

Unified Diff: Source/web/WebNode.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/WebHelperPluginImpl.cpp ('k') | Source/web/WebPluginContainerImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebNode.cpp
diff --git a/Source/web/WebNode.cpp b/Source/web/WebNode.cpp
index 1b41d253fc993848d5140ae0de98230d98a74fb2..e2a984b5f79e19801c092f8eaf605974419f90fb 100644
--- a/Source/web/WebNode.cpp
+++ b/Source/web/WebNode.cpp
@@ -243,7 +243,7 @@ WebPluginContainer* WebNode::pluginContainer() const
if (object && object->isWidget()) {
Widget* widget = WebCore::toRenderWidget(object)->widget();
if (widget && widget->isPluginContainer())
- return static_cast<WebPluginContainerImpl*>(widget);
+ return toPluginContainerImpl(widget);
}
}
return 0;
« no previous file with comments | « Source/web/WebHelperPluginImpl.cpp ('k') | Source/web/WebPluginContainerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698