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

Unified Diff: Source/web/WebPluginScrollbarImpl.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/WebPluginDocument.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebPluginScrollbarImpl.cpp
diff --git a/Source/web/WebPluginScrollbarImpl.cpp b/Source/web/WebPluginScrollbarImpl.cpp
index e7c49da03451b9190b7520cd1f5c6d2c316e91fb..a76e737b784a461322751e35df38a36f469a3169 100644
--- a/Source/web/WebPluginScrollbarImpl.cpp
+++ b/Source/web/WebPluginScrollbarImpl.cpp
@@ -50,7 +50,7 @@ WebPluginScrollbar* WebPluginScrollbar::createForPlugin(Orientation orientation,
WebPluginContainer* pluginContainer,
WebPluginScrollbarClient* client)
{
- WebPluginContainerImpl* plugin = static_cast<WebPluginContainerImpl*>(pluginContainer);
+ WebPluginContainerImpl* plugin = toPluginContainerImpl(pluginContainer);
return new WebPluginScrollbarImpl(orientation, plugin->scrollbarGroup(), client);
}
« no previous file with comments | « Source/web/WebPluginDocument.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698