OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 14 matching lines...) Expand all Loading... |
25 #define QNAME_DEFAULT_CONSTRUCTOR | 25 #define QNAME_DEFAULT_CONSTRUCTOR |
26 #endif | 26 #endif |
27 | 27 |
28 #include "HTMLNames.h" | 28 #include "HTMLNames.h" |
29 #include "SVGNames.h" | 29 #include "SVGNames.h" |
30 #include "XLinkNames.h" | 30 #include "XLinkNames.h" |
31 #include "XMLNSNames.h" | 31 #include "XMLNSNames.h" |
32 #include "XMLNames.h" | 32 #include "XMLNames.h" |
33 #include "core/dom/QualifiedName.h" | 33 #include "core/dom/QualifiedName.h" |
34 #include "core/dom/WebCoreMemoryInstrumentation.h" | 34 #include "core/dom/WebCoreMemoryInstrumentation.h" |
35 #include <wtf/Assertions.h> | 35 #include "wtf/Assertions.h" |
36 #include <wtf/HashSet.h> | 36 #include "wtf/HashSet.h" |
37 #include <wtf/StaticConstructors.h> | 37 #include "wtf/StaticConstructors.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 static const int staticQualifiedNamesCount = HTMLNames::HTMLTagsCount + HTMLName
s::HTMLAttrsCount | 41 static const int staticQualifiedNamesCount = HTMLNames::HTMLTagsCount + HTMLName
s::HTMLAttrsCount |
42 + SVGNames::SVGTagsCount + SVGNames::SVGAttrsCount | 42 + SVGNames::SVGTagsCount + SVGNames::SVGAttrsCount |
43 + XLinkNames::XLinkAttrsCount | 43 + XLinkNames::XLinkAttrsCount |
44 + XMLNSNames::XMLNSAttrsCount | 44 + XMLNSNames::XMLNSAttrsCount |
45 + XMLNames::XMLAttrsCount; | 45 + XMLNames::XMLAttrsCount; |
46 | 46 |
47 struct QualifiedNameHashTraits : public HashTraits<QualifiedName::QualifiedNameI
mpl*> { | 47 struct QualifiedNameHashTraits : public HashTraits<QualifiedName::QualifiedNameI
mpl*> { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 { | 158 { |
159 new (reinterpret_cast<void*>(targetAddress)) QualifiedName(nullAtom, AtomicS
tring(name), nameNamespace); | 159 new (reinterpret_cast<void*>(targetAddress)) QualifiedName(nullAtom, AtomicS
tring(name), nameNamespace); |
160 } | 160 } |
161 | 161 |
162 void createQualifiedName(void* targetAddress, StringImpl* name) | 162 void createQualifiedName(void* targetAddress, StringImpl* name) |
163 { | 163 { |
164 new (reinterpret_cast<void*>(targetAddress)) QualifiedName(nullAtom, AtomicS
tring(name), nullAtom); | 164 new (reinterpret_cast<void*>(targetAddress)) QualifiedName(nullAtom, AtomicS
tring(name), nullAtom); |
165 } | 165 } |
166 | 166 |
167 } | 167 } |
OLD | NEW |