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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 CSSPropertyID propertyId = cssPropertyID(attrName.localName()); | 61 CSSPropertyID propertyId = cssPropertyID(attrName.localName()); |
62 if (!propertyId && attrName == transform_originAttr) | 62 if (!propertyId && attrName == transform_originAttr) |
63 propertyId = CSSPropertyWebkitTransformOrigin; // cssPropertyID("-webkit
-transform-origin") | 63 propertyId = CSSPropertyTransformOrigin; // cssPropertyID("transform-ori
gin") |
64 ASSERT(propertyId > 0); | 64 ASSERT(propertyId > 0); |
65 propertyNameToIdMap->set(attrName.localName().impl(), propertyId); | 65 propertyNameToIdMap->set(attrName.localName().impl(), propertyId); |
66 } | 66 } |
67 | 67 |
68 SVGElement::SVGElement(const QualifiedName& tagName, Document& document, Constru
ctionType constructionType) | 68 SVGElement::SVGElement(const QualifiedName& tagName, Document& document, Constru
ctionType constructionType) |
69 : Element(tagName, &document, constructionType) | 69 : Element(tagName, &document, constructionType) |
70 #if !ASSERT_DISABLED | 70 #if !ASSERT_DISABLED |
71 , m_inRelativeLengthClientsInvalidation(false) | 71 , m_inRelativeLengthClientsInvalidation(false) |
72 #endif | 72 #endif |
73 // |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... |
1127 animatableAttributes.add(SVGNames::zAttr); | 1127 animatableAttributes.add(SVGNames::zAttr); |
1128 } | 1128 } |
1129 | 1129 |
1130 if (name == classAttr) | 1130 if (name == classAttr) |
1131 return true; | 1131 return true; |
1132 | 1132 |
1133 return animatableAttributes.contains(name); | 1133 return animatableAttributes.contains(name); |
1134 } | 1134 } |
1135 #endif | 1135 #endif |
1136 } | 1136 } |
OLD | NEW |