OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 ASSERT(m_element); | 56 ASSERT(m_element); |
57 ASSERT(m_attributeName); | 57 ASSERT(m_attributeName); |
58 } | 58 } |
59 | 59 |
60 bool operator==(const SVGAnimatedPropertyDescription& other) const | 60 bool operator==(const SVGAnimatedPropertyDescription& other) const |
61 { | 61 { |
62 return m_element == other.m_element && m_attributeName == other.m_attrib
uteName; | 62 return m_element == other.m_element && m_attributeName == other.m_attrib
uteName; |
63 } | 63 } |
64 | 64 |
65 SVGElement* m_element; | 65 SVGElement* m_element; |
66 AtomicStringImpl* m_attributeName; | 66 StringImpl* m_attributeName; |
67 }; | 67 }; |
68 | 68 |
69 struct SVGAnimatedPropertyDescriptionHash { | 69 struct SVGAnimatedPropertyDescriptionHash { |
70 static unsigned hash(const SVGAnimatedPropertyDescription& key) | 70 static unsigned hash(const SVGAnimatedPropertyDescription& key) |
71 { | 71 { |
72 return StringHasher::hashMemory<sizeof(SVGAnimatedPropertyDescription)>(
&key); | 72 return StringHasher::hashMemory<sizeof(SVGAnimatedPropertyDescription)>(
&key); |
73 } | 73 } |
74 | 74 |
75 static bool equal(const SVGAnimatedPropertyDescription& a, const SVGAnimated
PropertyDescription& b) | 75 static bool equal(const SVGAnimatedPropertyDescription& a, const SVGAnimated
PropertyDescription& b) |
76 { | 76 { |
77 return a == b; | 77 return a == b; |
78 } | 78 } |
79 | 79 |
80 static const bool safeToCompareToEmptyOrDeleted = true; | 80 static const bool safeToCompareToEmptyOrDeleted = true; |
81 }; | 81 }; |
82 | 82 |
83 struct SVGAnimatedPropertyDescriptionHashTraits : WTF::SimpleClassHashTraits<SVG
AnimatedPropertyDescription> { }; | 83 struct SVGAnimatedPropertyDescriptionHashTraits : WTF::SimpleClassHashTraits<SVG
AnimatedPropertyDescription> { }; |
84 | 84 |
85 } | 85 } |
86 | 86 |
87 #endif // SVGAnimatedPropertyDescription_h | 87 #endif // SVGAnimatedPropertyDescription_h |
OLD | NEW |