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, 2006, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "core/svg/SVGElementInstance.h" | 44 #include "core/svg/SVGElementInstance.h" |
45 #include "core/svg/SVGElementRareData.h" | 45 #include "core/svg/SVGElementRareData.h" |
46 #include "core/svg/SVGGraphicsElement.h" | 46 #include "core/svg/SVGGraphicsElement.h" |
47 #include "core/svg/SVGSVGElement.h" | 47 #include "core/svg/SVGSVGElement.h" |
48 #include "core/svg/SVGUseElement.h" | 48 #include "core/svg/SVGUseElement.h" |
49 | 49 |
50 #include "wtf/TemporaryChange.h" | 50 #include "wtf/TemporaryChange.h" |
51 | 51 |
52 namespace WebCore { | 52 namespace WebCore { |
53 | 53 |
54 // Animated property definitions | |
55 | |
56 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGElement) | |
57 END_REGISTER_ANIMATED_PROPERTIES | |
58 | |
59 using namespace HTMLNames; | 54 using namespace HTMLNames; |
60 using namespace SVGNames; | 55 using namespace SVGNames; |
61 | 56 |
62 void mapAttributeToCSSProperty(HashMap<StringImpl*, CSSPropertyID>* propertyName
ToIdMap, const QualifiedName& attrName) | 57 void mapAttributeToCSSProperty(HashMap<StringImpl*, CSSPropertyID>* propertyName
ToIdMap, const QualifiedName& attrName) |
63 { | 58 { |
64 // FIXME: when CSS supports "transform-origin" the special case for transfor
m_originAttr can be removed. | 59 // FIXME: when CSS supports "transform-origin" the special case for transfor
m_originAttr can be removed. |
65 CSSPropertyID propertyId = cssPropertyID(attrName.localName()); | 60 CSSPropertyID propertyId = cssPropertyID(attrName.localName()); |
66 if (!propertyId && attrName == transform_originAttr) | 61 if (!propertyId && attrName == transform_originAttr) |
67 propertyId = CSSPropertyWebkitTransformOrigin; // cssPropertyID("-webkit
-transform-origin") | 62 propertyId = CSSPropertyWebkitTransformOrigin; // cssPropertyID("-webkit
-transform-origin") |
68 ASSERT(propertyId > 0); | 63 ASSERT(propertyId > 0); |
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 animatableAttributes.add(SVGNames::zAttr); | 1148 animatableAttributes.add(SVGNames::zAttr); |
1154 } | 1149 } |
1155 | 1150 |
1156 if (name == classAttr) | 1151 if (name == classAttr) |
1157 return true; | 1152 return true; |
1158 | 1153 |
1159 return animatableAttributes.contains(name); | 1154 return animatableAttributes.contains(name); |
1160 } | 1155 } |
1161 #endif | 1156 #endif |
1162 } | 1157 } |
OLD | NEW |