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

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

Issue 1587673005: Add counters for <menuitem>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/HTMLMenuItemElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp b/third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp
index 8d512dd0b085377066b01fecec607e70e18cdf3b..e397cda6c7e2fd4fa211f5fcf35da5ec8e17c111 100644
--- a/third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp
@@ -7,6 +7,7 @@
#include "core/HTMLNames.h"
#include "core/dom/ElementTraversal.h"
#include "core/events/Event.h"
+#include "core/frame/UseCounter.h"
namespace blink {
@@ -15,6 +16,7 @@ using namespace HTMLNames;
inline HTMLMenuItemElement::HTMLMenuItemElement(Document& document)
: HTMLElement(HTMLNames::menuitemTag, document)
{
+ UseCounter::count(document, UseCounter::MenuItemElement);
}
void HTMLMenuItemElement::defaultEventHandler(Event* event)
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/core/html/HTMLUnknownElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698