OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 #include "core/html/parser/AtomicHTMLToken.h" |
| 7 |
| 8 namespace blink { |
| 9 |
| 10 QualifiedName AtomicHTMLToken::nameForAttribute(const HTMLToken::Attribute& attr
ibute) const |
| 11 { |
| 12 return QualifiedName(nullAtom, AtomicString(attribute.name), nullAtom); |
| 13 } |
| 14 |
| 15 bool AtomicHTMLToken::usesName() const |
| 16 { |
| 17 return m_type == HTMLToken::StartTag || m_type == HTMLToken::EndTag || m_typ
e == HTMLToken::DOCTYPE; |
| 18 } |
| 19 |
| 20 bool AtomicHTMLToken::usesAttributes() const |
| 21 { |
| 22 return m_type == HTMLToken::StartTag || m_type == HTMLToken::EndTag; |
| 23 } |
| 24 |
| 25 } |
OLD | NEW |