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 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 149 |
150 #if COMPILER(MSVC) | 150 #if COMPILER(MSVC) |
151 #pragma warning(pop) | 151 #pragma warning(pop) |
152 #endif | 152 #endif |
153 | 153 |
154 class UniqueElementData : public ElementData { | 154 class UniqueElementData : public ElementData { |
155 public: | 155 public: |
156 static PassRefPtr<UniqueElementData> create(); | 156 static PassRefPtr<UniqueElementData> create(); |
157 PassRefPtr<ShareableElementData> makeShareableCopy() const; | 157 PassRefPtr<ShareableElementData> makeShareableCopy() const; |
158 | 158 |
| 159 OVERRIDE_NEW(UniqueElementData) |
| 160 |
159 // These functions do no error/duplicate checking. | 161 // These functions do no error/duplicate checking. |
160 void addAttribute(const QualifiedName&, const AtomicString&); | 162 void addAttribute(const QualifiedName&, const AtomicString&); |
161 void removeAttribute(size_t index); | 163 void removeAttribute(size_t index); |
162 | 164 |
163 Attribute* attributeItem(unsigned index); | 165 Attribute* attributeItem(unsigned index); |
164 Attribute* getAttributeItem(const QualifiedName&); | 166 Attribute* getAttributeItem(const QualifiedName&); |
165 | 167 |
166 UniqueElementData(); | 168 UniqueElementData(); |
167 explicit UniqueElementData(const ShareableElementData&); | 169 explicit UniqueElementData(const ShareableElementData&); |
168 explicit UniqueElementData(const UniqueElementData&); | 170 explicit UniqueElementData(const UniqueElementData&); |
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 | 1012 |
1011 inline const Attribute* ElementData::attributeItem(unsigned index) const | 1013 inline const Attribute* ElementData::attributeItem(unsigned index) const |
1012 { | 1014 { |
1013 RELEASE_ASSERT(index < length()); | 1015 RELEASE_ASSERT(index < length()); |
1014 return attributeBase() + index; | 1016 return attributeBase() + index; |
1015 } | 1017 } |
1016 | 1018 |
1017 } // namespace | 1019 } // namespace |
1018 | 1020 |
1019 #endif | 1021 #endif |
OLD | NEW |