Index: Source/core/page/ContextMenuController.cpp |
diff --git a/Source/core/page/ContextMenuController.cpp b/Source/core/page/ContextMenuController.cpp |
index 9199bda2d53b79478cbb12a5066281964c2874df..dbc6ff736ad7376d093f5ede45dc24133d3da407 100644 |
--- a/Source/core/page/ContextMenuController.cpp |
+++ b/Source/core/page/ContextMenuController.cpp |
@@ -95,13 +95,13 @@ void ContextMenuController::populateCustomContextMenu(const Event& event) |
return; |
HTMLElement& element = toHTMLElement(*node); |
- RefPtrWillBeRawPtr<HTMLMenuElement> menuElement = element.contextMenu(); |
+ RefPtrWillBeRawPtr<HTMLMenuElement> menuElement = element.assignedContextMenu(); |
if (!menuElement || !equalIgnoringCase(menuElement->fastGetAttribute(typeAttr), "popup")) |
return; |
RefPtrWillBeRawPtr<RelatedEvent> relatedEvent = RelatedEvent::create(EventTypeNames::show, true, true, node); |
if (!menuElement->dispatchEvent(relatedEvent.release())) |
return; |
- if (menuElement != element.contextMenu()) |
+ if (menuElement != element.assignedContextMenu()) |
return; |
m_menuProvider = CustomContextMenuProvider::create(*menuElement, element); |
m_menuProvider->populateContextMenu(m_contextMenu.get()); |