Chromium Code Reviews| Index: Source/core/svg/SVGAnimateElement.cpp |
| diff --git a/Source/core/svg/SVGAnimateElement.cpp b/Source/core/svg/SVGAnimateElement.cpp |
| index 51ceaeb94f97ef63ce654ed71cd8a026d848c9e3..4cfd3ea0599c768d46a4d406a2e089ad5fbb6e92 100644 |
| --- a/Source/core/svg/SVGAnimateElement.cpp |
| +++ b/Source/core/svg/SVGAnimateElement.cpp |
| @@ -49,8 +49,10 @@ PassRefPtr<SVGAnimateElement> SVGAnimateElement::create(Document& document) |
| SVGAnimateElement::~SVGAnimateElement() |
| { |
| +#if !ENABLE(OILPAN) |
| if (targetElement()) |
| clearAnimatedType(targetElement()); |
|
haraken
2014/05/06 15:59:42
clearAnimatedType is doing a bunch of non-trivial
kouhei (in TOK)
2014/05/07 01:43:13
Removing <animate> tag means it should stop the SM
Mads Ager (chromium)
2014/05/07 12:13:16
Kouhei, would it be possible to write a test case
|
| +#endif |
| } |
| bool SVGAnimateElement::hasValidAttributeType() |
| @@ -203,7 +205,9 @@ void SVGAnimateElement::resetAnimatedType() |
| static inline void applyCSSPropertyToTarget(SVGElement* targetElement, CSSPropertyID id, const String& value) |
| { |
| +#if !ENABLE(OILPAN) |
| ASSERT_WITH_SECURITY_IMPLICATION(!targetElement->m_deletionHasBegun); |
| +#endif |
| MutableStylePropertySet* propertySet = targetElement->ensureAnimatedSMILStyleProperties(); |
| if (!propertySet->setProperty(id, value, false, 0)) |
| @@ -214,7 +218,9 @@ static inline void applyCSSPropertyToTarget(SVGElement* targetElement, CSSProper |
| static inline void removeCSSPropertyFromTarget(SVGElement* targetElement, CSSPropertyID id) |
| { |
| +#if !ENABLE(OILPAN) |
| ASSERT_WITH_SECURITY_IMPLICATION(!targetElement->m_deletionHasBegun); |
| +#endif |
| targetElement->ensureAnimatedSMILStyleProperties()->removeProperty(id); |
| targetElement->setNeedsStyleRecalc(LocalStyleChange); |
| } |
| @@ -261,7 +267,9 @@ static inline void removeCSSPropertyFromTargetAndInstances(SVGElement* targetEle |
| static inline void notifyTargetAboutAnimValChange(SVGElement* targetElement, const QualifiedName& attributeName) |
| { |
| +#if !ENABLE(OILPAN) |
| ASSERT_WITH_SECURITY_IMPLICATION(!targetElement->m_deletionHasBegun); |
| +#endif |
| targetElement->invalidateSVGAttributes(); |
| targetElement->svgAttributeChanged(attributeName); |
| } |