| 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 dd9e57e9fe261a56dc41a8e0ea49eab7eefec896..a0dbcc4659e3cba580d0f80af37181ed7a35bd5b 100644
|
| --- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
|
| @@ -253,11 +253,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;
|
|
|