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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 ASSERT(m_element); | 55 ASSERT(m_element); |
56 ASSERT(m_attributeName); | 56 ASSERT(m_attributeName); |
57 } | 57 } |
58 | 58 |
59 bool operator==(const SVGAnimatedPropertyDescription& other) const | 59 bool operator==(const SVGAnimatedPropertyDescription& other) const |
60 { | 60 { |
61 return m_element == other.m_element && m_attributeName == other.m_attrib
uteName; | 61 return m_element == other.m_element && m_attributeName == other.m_attrib
uteName; |
62 } | 62 } |
63 | 63 |
64 SVGElement* m_element; | 64 SVGElement* m_element; |
65 AtomicStringImpl* m_attributeName; | 65 StringImpl* m_attributeName; |
66 }; | 66 }; |
67 | 67 |
68 struct SVGAnimatedPropertyDescriptionHash { | 68 struct SVGAnimatedPropertyDescriptionHash { |
69 static unsigned hash(const SVGAnimatedPropertyDescription& key) | 69 static unsigned hash(const SVGAnimatedPropertyDescription& key) |
70 { | 70 { |
71 return StringHasher::hashMemory<sizeof(SVGAnimatedPropertyDescription)>(
&key); | 71 return StringHasher::hashMemory<sizeof(SVGAnimatedPropertyDescription)>(
&key); |
72 } | 72 } |
73 | 73 |
74 static bool equal(const SVGAnimatedPropertyDescription& a, const SVGAnimated
PropertyDescription& b) | 74 static bool equal(const SVGAnimatedPropertyDescription& a, const SVGAnimated
PropertyDescription& b) |
75 { | 75 { |
76 return a == b; | 76 return a == b; |
77 } | 77 } |
78 | 78 |
79 static const bool safeToCompareToEmptyOrDeleted = true; | 79 static const bool safeToCompareToEmptyOrDeleted = true; |
80 }; | 80 }; |
81 | 81 |
82 struct SVGAnimatedPropertyDescriptionHashTraits : WTF::SimpleClassHashTraits<SVG
AnimatedPropertyDescription> { }; | 82 struct SVGAnimatedPropertyDescriptionHashTraits : WTF::SimpleClassHashTraits<SVG
AnimatedPropertyDescription> { }; |
83 | 83 |
84 } | 84 } |
85 | 85 |
86 #endif // SVGAnimatedPropertyDescription_h | 86 #endif // SVGAnimatedPropertyDescription_h |
OLD | NEW |