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

Unified Diff: third_party/WebKit/Source/core/html/HTMLUnknownElement.cpp

Issue 2905763003: Rollback ContextMenu (Closed)
Patch Set: Delete RuntimeEnabledFeatures::contextMenuEnabled Created 3 years, 7 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/html/HTMLUnknownElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLUnknownElement.cpp b/third_party/WebKit/Source/core/html/HTMLUnknownElement.cpp
index d87b3e4a5e3a0b194420d12e1251c96b78590145..385dd122cb7d6a7143646697b89cc47567bb2a50 100644
--- a/third_party/WebKit/Source/core/html/HTMLUnknownElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLUnknownElement.cpp
@@ -15,14 +15,10 @@ HTMLUnknownElement::HTMLUnknownElement(const QualifiedName& tag_name,
UseCounter::Count(document, UseCounter::kDataElement);
else if (tag_name.LocalName() == "time")
UseCounter::Count(document, UseCounter::kTimeElement);
- else if (tag_name.LocalName() == "menuitem")
- UseCounter::Count(document, UseCounter::kMenuItemElement);
}
void HTMLUnknownElement::ParseAttribute(
tkent 2017/05/26 04:48:53 We should remove the entire function.
yuzuchan 2017/05/30 07:15:20 Done.
const AttributeModificationParams& params) {
- if (params.name == HTMLNames::iconAttr && HasTagName(HTMLNames::menuitemTag))
- UseCounter::Count(GetDocument(), UseCounter::kMenuItemElementIconAttribute);
HTMLElement::ParseAttribute(params);
}

Powered by Google App Engine
This is Rietveld 408576698