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. |
61 CSSPropertyID propertyId = cssPropertyID(attrName.localName()); | 62 CSSPropertyID propertyId = cssPropertyID(attrName.localName()); |
62 if (!propertyId && attrName == transform_originAttr) | 63 if (!propertyId && attrName == transform_originAttr) { |
63 propertyId = CSSPropertyWebkitTransformOrigin; // cssPropertyID("-webkit
-transform-origin") | 64 propertyId = CSSPropertyWebkitTransformOrigin; // cssPropertyID("-webkit
-transform-origin") |
| 65 } else if (propertyId == CSSPropertyTransformOrigin) { |
| 66 propertyId = CSSPropertyWebkitTransformOrigin; |
| 67 } |
64 ASSERT(propertyId > 0); | 68 ASSERT(propertyId > 0); |
65 propertyNameToIdMap->set(attrName.localName().impl(), propertyId); | 69 propertyNameToIdMap->set(attrName.localName().impl(), propertyId); |
66 } | 70 } |
67 | 71 |
68 SVGElement::SVGElement(const QualifiedName& tagName, Document& document, Constru
ctionType constructionType) | 72 SVGElement::SVGElement(const QualifiedName& tagName, Document& document, Constru
ctionType constructionType) |
69 : Element(tagName, &document, constructionType) | 73 : Element(tagName, &document, constructionType) |
70 #if !ASSERT_DISABLED | 74 #if !ASSERT_DISABLED |
71 , m_inRelativeLengthClientsInvalidation(false) | 75 , m_inRelativeLengthClientsInvalidation(false) |
72 #endif | 76 #endif |
73 // |m_isContextElement| must be initialized before |m_className|, as SVGAnim
atedString tear-off c-tor currently set this to true. | 77 // |m_isContextElement| must be initialized before |m_className|, as SVGAnim
atedString tear-off c-tor currently set this to true. |
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 animatableAttributes.add(SVGNames::zAttr); | 1113 animatableAttributes.add(SVGNames::zAttr); |
1110 } | 1114 } |
1111 | 1115 |
1112 if (name == classAttr) | 1116 if (name == classAttr) |
1113 return true; | 1117 return true; |
1114 | 1118 |
1115 return animatableAttributes.contains(name); | 1119 return animatableAttributes.contains(name); |
1116 } | 1120 } |
1117 #endif | 1121 #endif |
1118 } | 1122 } |
OLD | NEW |