| 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 905666f861b85ff4c83cd2184d5b0c2a71651761..e3b7d64d769c4e8d4e6739823b3c615a96351bcd 100644
|
| --- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
|
| @@ -254,11 +254,10 @@ bool ContextMenuClientImpl::showContextMenu(const ContextMenu* defaultMenu,
|
| isHTMLEmbedElement(*r.innerNode())) {
|
| LayoutObject* object = r.innerNode()->layoutObject();
|
| if (object && object->isLayoutPart()) {
|
| - FrameViewBase* frameViewBase = toLayoutPart(object)->frameViewBase();
|
| - if (frameViewBase && frameViewBase->isPluginContainer()) {
|
| + PluginView* pluginView = toLayoutPart(object)->plugin();
|
| + if (pluginView && pluginView->isPluginContainer()) {
|
| data.mediaType = WebContextMenuData::MediaTypePlugin;
|
| - WebPluginContainerImpl* plugin =
|
| - toWebPluginContainerImpl(toPluginView(frameViewBase));
|
| + WebPluginContainerImpl* plugin = toWebPluginContainerImpl(pluginView);
|
| WebString text = plugin->plugin()->selectionAsText();
|
| if (!text.isEmpty()) {
|
| data.selectedText = text;
|
|
|