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

Unified Diff: third_party/WebKit/Source/web/WebNode.cpp

Issue 2764313002: Move plugins to be stored in HTMLPlugInElement. (Closed)
Patch Set: Update comments about duplicating code Created 3 years, 8 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: third_party/WebKit/Source/web/WebNode.cpp
diff --git a/third_party/WebKit/Source/web/WebNode.cpp b/third_party/WebKit/Source/web/WebNode.cpp
index c9f1b44feed0689cca15575e4489d784d5f01d9f..6c1b8e2ab62c123f1dc3b0d11ab9831249f3e906 100644
--- a/third_party/WebKit/Source/web/WebNode.cpp
+++ b/third_party/WebKit/Source/web/WebNode.cpp
@@ -186,9 +186,9 @@ WebPluginContainer* WebNode::pluginContainerFromNode(const Node* node) {
LayoutObject* object = node->layoutObject();
if (object && object->isLayoutPart()) {
- FrameViewBase* frameViewBase = toLayoutPart(object)->frameViewBase();
- if (frameViewBase && frameViewBase->isPluginContainer())
- return toWebPluginContainerImpl(frameViewBase);
+ PluginView* plugin = toLayoutPart(object)->plugin();
+ if (plugin && plugin->isPluginContainer())
+ return toWebPluginContainerImpl(plugin);
}
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698