Index: Source/web/ContextMenuClientImpl.cpp |
diff --git a/Source/web/ContextMenuClientImpl.cpp b/Source/web/ContextMenuClientImpl.cpp |
index 817aebd7d7bc2472fe31eead662c8957ab356457..9c07059c8dc06e0c8800160476e76ac69f689ae5 100644 |
--- a/Source/web/ContextMenuClientImpl.cpp |
+++ b/Source/web/ContextMenuClientImpl.cpp |
@@ -250,7 +250,7 @@ void ContextMenuClientImpl::showContextMenu(const WebCore::ContextMenu* defaultM |
Widget* widget = toRenderWidget(object)->widget(); |
if (widget && widget->isPluginContainer()) { |
data.mediaType = WebContextMenuData::MediaTypePlugin; |
- WebPluginContainerImpl* plugin = static_cast<WebPluginContainerImpl*>(widget); |
+ WebPluginContainerImpl* plugin = toPluginContainerImpl(widget); |
WebString text = plugin->plugin()->selectionAsText(); |
if (!text.isEmpty()) { |
data.selectedText = text; |