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

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

Issue 2905763003: Rollback ContextMenu (Closed)
Patch Set: Rebase 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..2af0d17c328e9303893a92cdbe0a40ded93a30ba 100644
--- a/third_party/WebKit/Source/core/html/HTMLUnknownElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLUnknownElement.cpp
@@ -15,15 +15,6 @@ 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(
- const AttributeModificationParams& params) {
- if (params.name == HTMLNames::iconAttr && HasTagName(HTMLNames::menuitemTag))
- UseCounter::Count(GetDocument(), UseCounter::kMenuItemElementIconAttribute);
- HTMLElement::ParseAttribute(params);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698