| OLD | NEW |
| 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 |
| OLD | NEW |