Index: Source/core/page/CustomContextMenuProvider.cpp |
diff --git a/Source/core/page/CustomContextMenuProvider.cpp b/Source/core/page/CustomContextMenuProvider.cpp |
index 9db64393d6caf567604c153a5e0be2b83e855e9b..3b1ca8f6061983eca0ef3be686460571f3104927 100644 |
--- a/Source/core/page/CustomContextMenuProvider.cpp |
+++ b/Source/core/page/CustomContextMenuProvider.cpp |
@@ -80,7 +80,7 @@ void CustomContextMenuProvider::appendMenuItem(HTMLMenuItemElement* menuItem, Co |
return; |
m_menuItems.append(menuItem); |
- contextMenu.appendItem(ContextMenuItem(ActionType, static_cast<ContextMenuAction>(ContextMenuItemBaseCustomTag + m_menuItems.size() - 1), labelString)); |
+ contextMenu.appendItem(ContextMenuItem(ActionType, static_cast<ContextMenuAction>(ContextMenuItemBaseCustomTag + m_menuItems.size() - 1), labelString, !menuItem->fastHasAttribute(disabledAttr), false)); |
} |
void CustomContextMenuProvider::populateContextMenuItems(const HTMLMenuElement& menu, ContextMenu& contextMenu) |