Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / html / parser / HTMLStackItem.h
index e15c2c1..014909c 100644 (file)
 #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"
 
-namespace WebCore {
+namespace blink {
 
 class ContainerNode;
 
@@ -178,6 +179,7 @@ public:
             || tagName == HTMLNames::mainTag
             || tagName == HTMLNames::marqueeTag
             || tagName == HTMLNames::menuTag
+            || (RuntimeEnabledFeatures::contextMenuEnabled() && tagName == HTMLNames::menuitemTag)
             || tagName == HTMLNames::metaTag
             || tagName == HTMLNames::navTag
             || tagName == HTMLNames::noembedTag
@@ -242,6 +244,6 @@ private:
     bool m_isDocumentFragmentNode;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // HTMLStackItem_h