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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 PassRefPtrWillBeRawPtr<CSSValue> SVGElement::getPresentationAttribute(const Atom
icString& name) | 263 PassRefPtrWillBeRawPtr<CSSValue> SVGElement::getPresentationAttribute(const Atom
icString& name) |
264 { | 264 { |
265 if (!hasAttributesWithoutUpdate()) | 265 if (!hasAttributesWithoutUpdate()) |
266 return nullptr; | 266 return nullptr; |
267 | 267 |
268 QualifiedName attributeName(nullAtom, name, nullAtom); | 268 QualifiedName attributeName(nullAtom, name, nullAtom); |
269 const Attribute* attr = getAttributeItem(attributeName); | 269 const Attribute* attr = getAttributeItem(attributeName); |
270 if (!attr) | 270 if (!attr) |
271 return nullptr; | 271 return nullptr; |
272 | 272 |
273 RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(SVGA
ttributeMode); | 273 RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet:
:create(SVGAttributeMode); |
274 CSSPropertyID propertyID = SVGElement::cssPropertyIdForSVGAttributeName(attr
->name()); | 274 CSSPropertyID propertyID = SVGElement::cssPropertyIdForSVGAttributeName(attr
->name()); |
275 style->setProperty(propertyID, attr->value()); | 275 style->setProperty(propertyID, attr->value()); |
276 RefPtrWillBeRawPtr<CSSValue> cssValue = style->getPropertyCSSValue(propertyI
D); | 276 RefPtrWillBeRawPtr<CSSValue> cssValue = style->getPropertyCSSValue(propertyI
D); |
277 return cssValue ? cssValue->cloneForCSSOM() : nullptr; | 277 return cssValue ? cssValue->cloneForCSSOM() : nullptr; |
278 } | 278 } |
279 | 279 |
280 | 280 |
281 bool SVGElement::instanceUpdatesBlocked() const | 281 bool SVGElement::instanceUpdatesBlocked() const |
282 { | 282 { |
283 return hasSVGRareData() && svgRareData()->instanceUpdatesBlocked(); | 283 return hasSVGRareData() && svgRareData()->instanceUpdatesBlocked(); |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 animatableAttributes.add(SVGNames::zAttr); | 1133 animatableAttributes.add(SVGNames::zAttr); |
1134 } | 1134 } |
1135 | 1135 |
1136 if (name == classAttr) | 1136 if (name == classAttr) |
1137 return true; | 1137 return true; |
1138 | 1138 |
1139 return animatableAttributes.contains(name); | 1139 return animatableAttributes.contains(name); |
1140 } | 1140 } |
1141 #endif | 1141 #endif |
1142 } | 1142 } |
OLD | NEW |