| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 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) Research In Motion Limited 2011. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 static inline void applyCSSPropertyToTarget(SVGElement* targetElement, CSSProper
tyID id, const String& value) | 198 static inline void applyCSSPropertyToTarget(SVGElement* targetElement, CSSProper
tyID id, const String& value) |
| 199 { | 199 { |
| 200 #if !ENABLE(OILPAN) | 200 #if !ENABLE(OILPAN) |
| 201 ASSERT_WITH_SECURITY_IMPLICATION(!targetElement->m_deletionHasBegun); | 201 ASSERT_WITH_SECURITY_IMPLICATION(!targetElement->m_deletionHasBegun); |
| 202 #endif | 202 #endif |
| 203 | 203 |
| 204 MutableStylePropertySet* propertySet = targetElement->ensureAnimatedSMILStyl
eProperties(); | 204 MutableStylePropertySet* propertySet = targetElement->ensureAnimatedSMILStyl
eProperties(); |
| 205 if (!propertySet->setProperty(id, value, false, 0)) | 205 if (!propertySet->setProperty(id, value, false, 0)) |
| 206 return; | 206 return; |
| 207 | 207 |
| 208 targetElement->setNeedsStyleRecalc(LocalStyleChange); | 208 targetElement->setNeedsStyleRecalc(StyleRecalcDueToAnimation, LocalStyleChan
ge); |
| 209 } | 209 } |
| 210 | 210 |
| 211 static inline void removeCSSPropertyFromTarget(SVGElement* targetElement, CSSPro
pertyID id) | 211 static inline void removeCSSPropertyFromTarget(SVGElement* targetElement, CSSPro
pertyID id) |
| 212 { | 212 { |
| 213 #if !ENABLE(OILPAN) | 213 #if !ENABLE(OILPAN) |
| 214 ASSERT_WITH_SECURITY_IMPLICATION(!targetElement->m_deletionHasBegun); | 214 ASSERT_WITH_SECURITY_IMPLICATION(!targetElement->m_deletionHasBegun); |
| 215 #endif | 215 #endif |
| 216 targetElement->ensureAnimatedSMILStyleProperties()->removeProperty(id); | 216 targetElement->ensureAnimatedSMILStyleProperties()->removeProperty(id); |
| 217 targetElement->setNeedsStyleRecalc(LocalStyleChange); | 217 targetElement->setNeedsStyleRecalc(StyleRecalcDueToAnimation, LocalStyleChan
ge); |
| 218 } | 218 } |
| 219 | 219 |
| 220 static inline void applyCSSPropertyToTargetAndInstances(SVGElement* targetElemen
t, const QualifiedName& attributeName, const String& valueAsString) | 220 static inline void applyCSSPropertyToTargetAndInstances(SVGElement* targetElemen
t, const QualifiedName& attributeName, const String& valueAsString) |
| 221 { | 221 { |
| 222 ASSERT(targetElement); | 222 ASSERT(targetElement); |
| 223 if (attributeName == anyQName() || !targetElement->inDocument() || !targetEl
ement->parentNode()) | 223 if (attributeName == anyQName() || !targetElement->inDocument() || !targetEl
ement->parentNode()) |
| 224 return; | 224 return; |
| 225 | 225 |
| 226 CSSPropertyID id = cssPropertyID(attributeName.localName()); | 226 CSSPropertyID id = cssPropertyID(attributeName.localName()); |
| 227 | 227 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 return m_animator.get(); | 395 return m_animator.get(); |
| 396 } | 396 } |
| 397 | 397 |
| 398 void SVGAnimateElement::trace(Visitor* visitor) | 398 void SVGAnimateElement::trace(Visitor* visitor) |
| 399 { | 399 { |
| 400 visitor->trace(m_animator); | 400 visitor->trace(m_animator); |
| 401 SVGAnimationElement::trace(visitor); | 401 SVGAnimationElement::trace(visitor); |
| 402 } | 402 } |
| 403 | 403 |
| 404 } | 404 } |
| OLD | NEW |