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

Unified Diff: Source/core/html/parser/HTMLStackItem.h

Issue 443373002: Add <menuitem>, new HTMLMenuElement IDL attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added RuntimeEnabled check Created 6 years, 4 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: Source/core/html/parser/HTMLStackItem.h
diff --git a/Source/core/html/parser/HTMLStackItem.h b/Source/core/html/parser/HTMLStackItem.h
index 1aaac2ff0ba4feb11a42c77bd436e43e98bbefc9..014909c9251f96003f294919e05e3cdf70067b6d 100644
--- a/Source/core/html/parser/HTMLStackItem.h
+++ b/Source/core/html/parser/HTMLStackItem.h
@@ -31,6 +31,7 @@
#include "core/SVGNames.h"
#include "core/dom/Element.h"
#include "core/html/parser/AtomicHTMLToken.h"
+#include "platform/RuntimeEnabledFeatures.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
#include "wtf/text/AtomicString.h"
@@ -178,6 +179,7 @@ public:
|| tagName == HTMLNames::mainTag
|| tagName == HTMLNames::marqueeTag
|| tagName == HTMLNames::menuTag
+ || (RuntimeEnabledFeatures::contextMenuEnabled() && tagName == HTMLNames::menuitemTag)
tkent 2014/08/11 10:23:01 Could you explain what part of the specification b
pals 2014/08/11 11:27:20 Specification: http://www.whatwg.org/specs/web-app
tkent 2014/08/11 13:36:57 Unfortunately URLs are broken. Please write expla
pals 2014/08/11 14:07:08 sorry, I copied the text of my previous comment wh
|| tagName == HTMLNames::metaTag
|| tagName == HTMLNames::navTag
|| tagName == HTMLNames::noembedTag

Powered by Google App Engine
This is Rietveld 408576698