| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Company 100, Inc. All rights reserved. | 2 * Copyright (C) 2012 Company 100, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 Element* element() const { return toElement(m_node.get()); } | 58 Element* element() const { return toElement(m_node.get()); } |
| 59 ContainerNode* node() const { return m_node.get(); } | 59 ContainerNode* node() const { return m_node.get(); } |
| 60 | 60 |
| 61 bool isDocumentFragmentNode() const { return m_isDocumentFragmentNode; } | 61 bool isDocumentFragmentNode() const { return m_isDocumentFragmentNode; } |
| 62 bool isElementNode() const { return !m_isDocumentFragmentNode; } | 62 bool isElementNode() const { return !m_isDocumentFragmentNode; } |
| 63 | 63 |
| 64 const AtomicString& namespaceURI() const { return m_namespaceURI; } | 64 const AtomicString& namespaceURI() const { return m_namespaceURI; } |
| 65 const AtomicString& localName() const { return m_tokenLocalName; } | 65 const AtomicString& localName() const { return m_tokenLocalName; } |
| 66 | 66 |
| 67 const Vector<Attribute>& attributes() const { | 67 const Vector<Attribute>& attributes() const { |
| 68 ASSERT(m_tokenLocalName); | 68 DCHECK(m_tokenLocalName); |
| 69 return m_tokenAttributes; | 69 return m_tokenAttributes; |
| 70 } | 70 } |
| 71 Attribute* getAttributeItem(const QualifiedName& attributeName) { | 71 Attribute* getAttributeItem(const QualifiedName& attributeName) { |
| 72 ASSERT(m_tokenLocalName); | 72 DCHECK(m_tokenLocalName); |
| 73 return findAttributeInVector(m_tokenAttributes, attributeName); | 73 return findAttributeInVector(m_tokenAttributes, attributeName); |
| 74 } | 74 } |
| 75 | 75 |
| 76 bool hasLocalName(const AtomicString& name) const { | 76 bool hasLocalName(const AtomicString& name) const { |
| 77 return m_tokenLocalName == name; | 77 return m_tokenLocalName == name; |
| 78 } | 78 } |
| 79 bool hasTagName(const QualifiedName& name) const { | 79 bool hasTagName(const QualifiedName& name) const { |
| 80 return m_tokenLocalName == name.localName() && | 80 return m_tokenLocalName == name.localName() && |
| 81 m_namespaceURI == name.namespaceURI(); | 81 m_namespaceURI == name.namespaceURI(); |
| 82 } | 82 } |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 206 |
| 207 AtomicString m_tokenLocalName; | 207 AtomicString m_tokenLocalName; |
| 208 Vector<Attribute> m_tokenAttributes; | 208 Vector<Attribute> m_tokenAttributes; |
| 209 AtomicString m_namespaceURI; | 209 AtomicString m_namespaceURI; |
| 210 bool m_isDocumentFragmentNode; | 210 bool m_isDocumentFragmentNode; |
| 211 }; | 211 }; |
| 212 | 212 |
| 213 } // namespace blink | 213 } // namespace blink |
| 214 | 214 |
| 215 #endif // HTMLStackItem_h | 215 #endif // HTMLStackItem_h |
| OLD | NEW |