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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 #include "wtf/TemporaryChange.h" | 51 #include "wtf/TemporaryChange.h" |
52 | 52 |
53 namespace WebCore { | 53 namespace WebCore { |
54 | 54 |
55 using namespace HTMLNames; | 55 using namespace HTMLNames; |
56 using namespace SVGNames; | 56 using namespace SVGNames; |
57 | 57 |
58 void mapAttributeToCSSProperty(HashMap<StringImpl*, CSSPropertyID>* propertyName
ToIdMap, const QualifiedName& attrName) | 58 void mapAttributeToCSSProperty(HashMap<StringImpl*, CSSPropertyID>* propertyName
ToIdMap, const QualifiedName& attrName) |
59 { | 59 { |
60 // FIXME: when CSS supports "transform-origin" the special case for transfor
m_originAttr can be removed. | 60 // FIXME: when CSS supports "transform-origin" the special case for transfor
m_originAttr can be removed. |
61 // FIXME: It's not clear the above is strictly true, as -webkit-transform-or
igin has non-standard behavior. | |
62 CSSPropertyID propertyId = cssPropertyID(attrName.localName()); | 61 CSSPropertyID propertyId = cssPropertyID(attrName.localName()); |
63 if (!propertyId && attrName == transform_originAttr) | 62 if (!propertyId && attrName == transform_originAttr) |
64 propertyId = CSSPropertyWebkitTransformOrigin; // cssPropertyID("-webkit
-transform-origin") | 63 propertyId = CSSPropertyWebkitTransformOrigin; // cssPropertyID("-webkit
-transform-origin") |
65 if (propertyId == CSSPropertyTransformOrigin) { | |
66 ASSERT(RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); | |
67 propertyId = CSSPropertyWebkitTransformOrigin; | |
68 } | |
69 ASSERT(propertyId > 0); | 64 ASSERT(propertyId > 0); |
70 propertyNameToIdMap->set(attrName.localName().impl(), propertyId); | 65 propertyNameToIdMap->set(attrName.localName().impl(), propertyId); |
71 } | 66 } |
72 | 67 |
73 SVGElement::SVGElement(const QualifiedName& tagName, Document& document, Constru
ctionType constructionType) | 68 SVGElement::SVGElement(const QualifiedName& tagName, Document& document, Constru
ctionType constructionType) |
74 : Element(tagName, &document, constructionType) | 69 : Element(tagName, &document, constructionType) |
75 #if !ASSERT_DISABLED | 70 #if !ASSERT_DISABLED |
76 , m_inRelativeLengthClientsInvalidation(false) | 71 , m_inRelativeLengthClientsInvalidation(false) |
77 #endif | 72 #endif |
78 // |m_isContextElement| must be initialized before |m_className|, as SVGAnim
atedString tear-off c-tor currently set this to true. | 73 // |m_isContextElement| must be initialized before |m_className|, as SVGAnim
atedString tear-off c-tor currently set this to true. |
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1132 animatableAttributes.add(SVGNames::zAttr); | 1127 animatableAttributes.add(SVGNames::zAttr); |
1133 } | 1128 } |
1134 | 1129 |
1135 if (name == classAttr) | 1130 if (name == classAttr) |
1136 return true; | 1131 return true; |
1137 | 1132 |
1138 return animatableAttributes.contains(name); | 1133 return animatableAttributes.contains(name); |
1139 } | 1134 } |
1140 #endif | 1135 #endif |
1141 } | 1136 } |
OLD | NEW |