| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 54 // Animated property definitions |
| 55 | 55 |
| 56 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGElement) | |
| 57 END_REGISTER_ANIMATED_PROPERTIES | |
| 58 | 56 |
| 59 using namespace HTMLNames; | 57 using namespace HTMLNames; |
| 60 using namespace SVGNames; | 58 using namespace SVGNames; |
| 61 | 59 |
| 62 void mapAttributeToCSSProperty(HashMap<StringImpl*, CSSPropertyID>* propertyName
ToIdMap, const QualifiedName& attrName) | 60 void mapAttributeToCSSProperty(HashMap<StringImpl*, CSSPropertyID>* propertyName
ToIdMap, const QualifiedName& attrName) |
| 63 { | 61 { |
| 64 // FIXME: when CSS supports "transform-origin" the special case for transfor
m_originAttr can be removed. | 62 // FIXME: when CSS supports "transform-origin" the special case for transfor
m_originAttr can be removed. |
| 65 CSSPropertyID propertyId = cssPropertyID(attrName.localName()); | 63 CSSPropertyID propertyId = cssPropertyID(attrName.localName()); |
| 66 if (!propertyId && attrName == transform_originAttr) | 64 if (!propertyId && attrName == transform_originAttr) |
| 67 propertyId = CSSPropertyWebkitTransformOrigin; // cssPropertyID("-webkit
-transform-origin") | 65 propertyId = CSSPropertyWebkitTransformOrigin; // cssPropertyID("-webkit
-transform-origin") |
| (...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1153 animatableAttributes.add(SVGNames::zAttr); | 1151 animatableAttributes.add(SVGNames::zAttr); |
| 1154 } | 1152 } |
| 1155 | 1153 |
| 1156 if (name == classAttr) | 1154 if (name == classAttr) |
| 1157 return true; | 1155 return true; |
| 1158 | 1156 |
| 1159 return animatableAttributes.contains(name); | 1157 return animatableAttributes.contains(name); |
| 1160 } | 1158 } |
| 1161 #endif | 1159 #endif |
| 1162 } | 1160 } |
| OLD | NEW |