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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void addNamedItem(const AtomicString& name); | 69 void addNamedItem(const AtomicString& name); |
70 void removeNamedItem(const AtomicString& name); | 70 void removeNamedItem(const AtomicString& name); |
71 bool hasNamedItem(StringImpl* name); | 71 bool hasNamedItem(StringImpl* name); |
72 | 72 |
73 void addExtraNamedItem(const AtomicString& name); | 73 void addExtraNamedItem(const AtomicString& name); |
74 void removeExtraNamedItem(const AtomicString& name); | 74 void removeExtraNamedItem(const AtomicString& name); |
75 bool hasExtraNamedItem(StringImpl* name); | 75 bool hasExtraNamedItem(StringImpl* name); |
76 | 76 |
77 static bool isCaseSensitiveAttribute(const QualifiedName&); | 77 static bool isCaseSensitiveAttribute(const QualifiedName&); |
78 | 78 |
| 79 virtual PassRefPtr<Document> cloneDocumentWithoutChildren() OVERRIDE FINAL; |
| 80 |
79 protected: | 81 protected: |
80 HTMLDocument(const DocumentInit&, DocumentClassFlags extendedDocumentClasses
= DefaultDocumentClass); | 82 HTMLDocument(const DocumentInit&, DocumentClassFlags extendedDocumentClasses
= DefaultDocumentClass); |
81 | 83 |
82 private: | 84 private: |
83 HTMLBodyElement* bodyAsHTMLBodyElement() const; | 85 HTMLBodyElement* bodyAsHTMLBodyElement() const; |
84 void addItemToMap(HashCountedSet<StringImpl*>&, const AtomicString&); | 86 void addItemToMap(HashCountedSet<StringImpl*>&, const AtomicString&); |
85 void removeItemFromMap(HashCountedSet<StringImpl*>&, const AtomicString&); | 87 void removeItemFromMap(HashCountedSet<StringImpl*>&, const AtomicString&); |
86 | 88 |
87 HashCountedSet<StringImpl*> m_namedItemCounts; | 89 HashCountedSet<StringImpl*> m_namedItemCounts; |
88 HashCountedSet<StringImpl*> m_extraNamedItemCounts; | 90 HashCountedSet<StringImpl*> m_extraNamedItemCounts; |
(...skipping 22 matching lines...) Expand all Loading... |
111 ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isHTMLDocument()); | 113 ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isHTMLDocument()); |
112 return static_cast<const HTMLDocument*>(document); | 114 return static_cast<const HTMLDocument*>(document); |
113 } | 115 } |
114 | 116 |
115 // This will catch anyone doing an unnecessary cast. | 117 // This will catch anyone doing an unnecessary cast. |
116 void toHTMLDocument(const HTMLDocument*); | 118 void toHTMLDocument(const HTMLDocument*); |
117 | 119 |
118 } // namespace WebCore | 120 } // namespace WebCore |
119 | 121 |
120 #endif // HTMLDocument_h | 122 #endif // HTMLDocument_h |
OLD | NEW |