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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLUnknownElement.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/html/HTMLUnknownElement.h" 5 #include "core/html/HTMLUnknownElement.h"
6 6
7 #include "core/frame/UseCounter.h" 7 #include "core/frame/UseCounter.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 HTMLUnknownElement::HTMLUnknownElement(const QualifiedName& tagName, Document& d ocument) 11 HTMLUnknownElement::HTMLUnknownElement(const QualifiedName& tagName, Document& d ocument)
12 : HTMLElement(tagName, document) 12 : HTMLElement(tagName, document)
13 { 13 {
14 if (tagName.localName() == "data") 14 if (tagName.localName() == "data")
15 UseCounter::count(document, UseCounter::DataElement); 15 UseCounter::count(document, UseCounter::DataElement);
16 else if (tagName.localName() == "time") 16 else if (tagName.localName() == "time")
17 UseCounter::count(document, UseCounter::TimeElement); 17 UseCounter::count(document, UseCounter::TimeElement);
18 else if (tagName.localName() == "menuitem")
19 UseCounter::count(document, UseCounter::MenuItemElement);
18 } 20 }
19 21
20 } // namespace blink 22 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698