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 3d45d87534e28c4f9bd7f35bd1695cf9f9e866ec..c866548ae2ba3735b34d82d3b004a462dfeede99 100644 |
--- a/third_party/WebKit/Source/web/WebNode.cpp |
+++ b/third_party/WebKit/Source/web/WebNode.cpp |
@@ -47,7 +47,7 @@ |
#include "core/layout/LayoutPart.h" |
#include "modules/accessibility/AXObject.h" |
#include "modules/accessibility/AXObjectCacheImpl.h" |
-#include "platform/Widget.h" |
+#include "platform/FrameViewBase.h" |
#include "public/platform/WebString.h" |
#include "public/web/WebAXObject.h" |
#include "public/web/WebDOMEvent.h" |
@@ -186,9 +186,9 @@ WebPluginContainer* WebNode::pluginContainerFromNode(const Node* node) { |
LayoutObject* object = node->layoutObject(); |
if (object && object->isLayoutPart()) { |
- Widget* widget = toLayoutPart(object)->widget(); |
- if (widget && widget->isPluginContainer()) |
- return toWebPluginContainerImpl(widget); |
+ FrameViewBase* frameViewBase = toLayoutPart(object)->widget(); |
+ if (frameViewBase && frameViewBase->isPluginContainer()) |
+ return toWebPluginContainerImpl(frameViewBase); |
} |
return nullptr; |