Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(833)

Unified Diff: third_party/WebKit/Source/core/page/ContextMenuController.cpp

Issue 1396053002: Rename <menu type=popup> to <menu type=context>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/ContextMenuController.cpp
diff --git a/third_party/WebKit/Source/core/page/ContextMenuController.cpp b/third_party/WebKit/Source/core/page/ContextMenuController.cpp
index 38585496e7af3b23fbeb69026354ee1aed3a7122..98bb06465d443983afbd39bf55ddd2d7cb3988f2 100644
--- a/third_party/WebKit/Source/core/page/ContextMenuController.cpp
+++ b/third_party/WebKit/Source/core/page/ContextMenuController.cpp
@@ -96,7 +96,7 @@ void ContextMenuController::populateCustomContextMenu(const Event& event)
HTMLElement& element = toHTMLElement(*node);
RefPtrWillBeRawPtr<HTMLMenuElement> menuElement = element.assignedContextMenu();
- if (!menuElement || !equalIgnoringCase(menuElement->fastGetAttribute(typeAttr), "popup"))
+ if (!menuElement || !equalIgnoringCase(menuElement->fastGetAttribute(typeAttr), "context"))
return;
RefPtrWillBeRawPtr<RelatedEvent> relatedEvent = RelatedEvent::create(EventTypeNames::show, true, true, node);
if (!menuElement->dispatchEvent(relatedEvent.release()))

Powered by Google App Engine
This is Rietveld 408576698