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 } else if (propertyId == CSSPropertyTransformOrigin) { | |
66 propertyId = CSSPropertyWebkitTransformOrigin; | |
67 } | |
68 ASSERT(propertyId > 0); | 64 ASSERT(propertyId > 0); |
69 propertyNameToIdMap->set(attrName.localName().impl(), propertyId); | 65 propertyNameToIdMap->set(attrName.localName().impl(), propertyId); |
70 } | 66 } |
71 | 67 |
72 SVGElement::SVGElement(const QualifiedName& tagName, Document& document, Constru
ctionType constructionType) | 68 SVGElement::SVGElement(const QualifiedName& tagName, Document& document, Constru
ctionType constructionType) |
73 : Element(tagName, &document, constructionType) | 69 : Element(tagName, &document, constructionType) |
74 #if !ASSERT_DISABLED | 70 #if !ASSERT_DISABLED |
75 , m_inRelativeLengthClientsInvalidation(false) | 71 , m_inRelativeLengthClientsInvalidation(false) |
76 #endif | 72 #endif |
77 // |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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1113 animatableAttributes.add(SVGNames::zAttr); | 1109 animatableAttributes.add(SVGNames::zAttr); |
1114 } | 1110 } |
1115 | 1111 |
1116 if (name == classAttr) | 1112 if (name == classAttr) |
1117 return true; | 1113 return true; |
1118 | 1114 |
1119 return animatableAttributes.contains(name); | 1115 return animatableAttributes.contains(name); |
1120 } | 1116 } |
1121 #endif | 1117 #endif |
1122 } | 1118 } |
OLD | NEW |