Index: Source/web/ContextMenuClientImpl.cpp |
diff --git a/Source/web/ContextMenuClientImpl.cpp b/Source/web/ContextMenuClientImpl.cpp |
index 5e6da71f01209c3bc1550ef6bc1e3cbd258aa786..ab763cd6145f84d896767b3d24114aeedfbc69a8 100644 |
--- a/Source/web/ContextMenuClientImpl.cpp |
+++ b/Source/web/ContextMenuClientImpl.cpp |
@@ -51,13 +51,13 @@ |
#include "core/html/HTMLPlugInElement.h" |
#include "core/html/MediaError.h" |
#include "core/layout/HitTestResult.h" |
+#include "core/layout/LayoutPart.h" |
#include "core/loader/DocumentLoader.h" |
#include "core/loader/FrameLoader.h" |
#include "core/loader/HistoryItem.h" |
#include "core/page/ContextMenuController.h" |
#include "core/page/EventHandler.h" |
#include "core/page/Page.h" |
-#include "core/rendering/RenderPart.h" |
#include "platform/ContextMenu.h" |
#include "platform/Widget.h" |
#include "platform/text/TextBreakIterator.h" |
@@ -272,8 +272,8 @@ void ContextMenuClientImpl::showContextMenu(const ContextMenu* defaultMenu) |
data.mediaFlags |= WebContextMenuData::MediaControls; |
} else if (isHTMLObjectElement(*r.innerNonSharedNode()) || isHTMLEmbedElement(*r.innerNonSharedNode())) { |
LayoutObject* object = r.innerNonSharedNode()->renderer(); |
- if (object && object->isRenderPart()) { |
- Widget* widget = toRenderPart(object)->widget(); |
+ if (object && object->isLayoutPart()) { |
+ Widget* widget = toLayoutPart(object)->widget(); |
if (widget && widget->isPluginContainer()) { |
data.mediaType = WebContextMenuData::MediaTypePlugin; |
WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget); |