| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 HTMLBodyElement* htmlBodyElement() const; | 75 HTMLBodyElement* htmlBodyElement() const; |
| 76 | 76 |
| 77 const AtomicString& bodyAttributeValue(const QualifiedName&) const; | 77 const AtomicString& bodyAttributeValue(const QualifiedName&) const; |
| 78 void setBodyAttribute(const QualifiedName&, const AtomicString&); | 78 void setBodyAttribute(const QualifiedName&, const AtomicString&); |
| 79 | 79 |
| 80 void addItemToMap(HashCountedSet<AtomicString>&, const AtomicString&); | 80 void addItemToMap(HashCountedSet<AtomicString>&, const AtomicString&); |
| 81 void removeItemFromMap(HashCountedSet<AtomicString>&, const AtomicString&); | 81 void removeItemFromMap(HashCountedSet<AtomicString>&, const AtomicString&); |
| 82 | 82 |
| 83 String debugName() const override { return "HTMLDocument"; } |
| 84 |
| 83 HashCountedSet<AtomicString> m_namedItemCounts; | 85 HashCountedSet<AtomicString> m_namedItemCounts; |
| 84 HashCountedSet<AtomicString> m_extraNamedItemCounts; | 86 HashCountedSet<AtomicString> m_extraNamedItemCounts; |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 inline bool HTMLDocument::hasNamedItem(const AtomicString& name) | 89 inline bool HTMLDocument::hasNamedItem(const AtomicString& name) |
| 88 { | 90 { |
| 89 return m_namedItemCounts.contains(name); | 91 return m_namedItemCounts.contains(name); |
| 90 } | 92 } |
| 91 | 93 |
| 92 inline bool HTMLDocument::hasExtraNamedItem(const AtomicString& name) | 94 inline bool HTMLDocument::hasExtraNamedItem(const AtomicString& name) |
| 93 { | 95 { |
| 94 return m_extraNamedItemCounts.contains(name); | 96 return m_extraNamedItemCounts.contains(name); |
| 95 } | 97 } |
| 96 | 98 |
| 97 DEFINE_DOCUMENT_TYPE_CASTS(HTMLDocument); | 99 DEFINE_DOCUMENT_TYPE_CASTS(HTMLDocument); |
| 98 | 100 |
| 99 } // namespace blink | 101 } // namespace blink |
| 100 | 102 |
| 101 #endif // HTMLDocument_h | 103 #endif // HTMLDocument_h |
| OLD | NEW |