Index: third_party/WebKit/Source/web/ContextMenuClientImpl.cpp |
diff --git a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp |
index a21167964b6cbaf7e65fe4588a8892617b07cd44..81c14acdaef8ab2277873278d48e987bed8ad088 100644 |
--- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp |
+++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp |
@@ -59,7 +59,7 @@ |
#include "core/page/ContextMenuController.h" |
#include "core/page/Page.h" |
#include "platform/ContextMenu.h" |
-#include "platform/Widget.h" |
+#include "platform/FrameViewBase.h" |
#include "platform/exported/WrappedResourceResponse.h" |
#include "platform/text/TextBreakIterator.h" |
#include "platform/weborigin/KURL.h" |
@@ -250,10 +250,11 @@ bool ContextMenuClientImpl::showContextMenu(const ContextMenu* defaultMenu, |
isHTMLEmbedElement(*r.innerNode())) { |
LayoutObject* object = r.innerNode()->layoutObject(); |
if (object && object->isLayoutPart()) { |
- Widget* widget = toLayoutPart(object)->widget(); |
- if (widget && widget->isPluginContainer()) { |
+ FrameViewBase* frameViewBase = toLayoutPart(object)->widget(); |
+ if (frameViewBase && frameViewBase->isPluginContainer()) { |
data.mediaType = WebContextMenuData::MediaTypePlugin; |
- WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget); |
+ WebPluginContainerImpl* plugin = |
+ toWebPluginContainerImpl(frameViewBase); |
WebString text = plugin->plugin()->selectionAsText(); |
if (!text.isEmpty()) { |
data.selectedText = text; |