| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 using Document::write; | 77 using Document::write; |
| 78 using Document::writeln; | 78 using Document::writeln; |
| 79 void write(DOMWindow*, const Vector<String>& text); | 79 void write(DOMWindow*, const Vector<String>& text); |
| 80 void writeln(DOMWindow*, const Vector<String>& text); | 80 void writeln(DOMWindow*, const Vector<String>& text); |
| 81 | 81 |
| 82 static bool isCaseSensitiveAttribute(const QualifiedName&); | 82 static bool isCaseSensitiveAttribute(const QualifiedName&); |
| 83 | 83 |
| 84 virtual PassRefPtr<Document> cloneDocumentWithoutChildren() OVERRIDE FINAL; | 84 virtual PassRefPtr<Document> cloneDocumentWithoutChildren() OVERRIDE FINAL; |
| 85 | 85 |
| 86 HTMLBodyElement* htmlBodyElement() const; |
| 87 |
| 86 protected: | 88 protected: |
| 87 HTMLDocument(const DocumentInit&, DocumentClassFlags extendedDocumentClasses
= DefaultDocumentClass); | 89 HTMLDocument(const DocumentInit&, DocumentClassFlags extendedDocumentClasses
= DefaultDocumentClass); |
| 88 | 90 |
| 89 private: | 91 private: |
| 90 HTMLBodyElement* htmlBodyElement() const; | |
| 91 | |
| 92 const AtomicString& bodyAttributeValue(const QualifiedName&) const; | 92 const AtomicString& bodyAttributeValue(const QualifiedName&) const; |
| 93 void setBodyAttribute(const QualifiedName&, const AtomicString&); | 93 void setBodyAttribute(const QualifiedName&, const AtomicString&); |
| 94 | 94 |
| 95 void addItemToMap(HashCountedSet<AtomicString>&, const AtomicString&); | 95 void addItemToMap(HashCountedSet<AtomicString>&, const AtomicString&); |
| 96 void removeItemFromMap(HashCountedSet<AtomicString>&, const AtomicString&); | 96 void removeItemFromMap(HashCountedSet<AtomicString>&, const AtomicString&); |
| 97 | 97 |
| 98 HashCountedSet<AtomicString> m_namedItemCounts; | 98 HashCountedSet<AtomicString> m_namedItemCounts; |
| 99 HashCountedSet<AtomicString> m_extraNamedItemCounts; | 99 HashCountedSet<AtomicString> m_extraNamedItemCounts; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 inline bool HTMLDocument::hasNamedItem(const AtomicString& name) | 102 inline bool HTMLDocument::hasNamedItem(const AtomicString& name) |
| 103 { | 103 { |
| 104 return m_namedItemCounts.contains(name); | 104 return m_namedItemCounts.contains(name); |
| 105 } | 105 } |
| 106 | 106 |
| 107 inline bool HTMLDocument::hasExtraNamedItem(const AtomicString& name) | 107 inline bool HTMLDocument::hasExtraNamedItem(const AtomicString& name) |
| 108 { | 108 { |
| 109 return m_extraNamedItemCounts.contains(name); | 109 return m_extraNamedItemCounts.contains(name); |
| 110 } | 110 } |
| 111 | 111 |
| 112 DEFINE_DOCUMENT_TYPE_CASTS(HTMLDocument); | 112 DEFINE_DOCUMENT_TYPE_CASTS(HTMLDocument); |
| 113 | 113 |
| 114 } // namespace WebCore | 114 } // namespace WebCore |
| 115 | 115 |
| 116 #endif // HTMLDocument_h | 116 #endif // HTMLDocument_h |
| OLD | NEW |