Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(721)

Unified Diff: Source/core/svg/SVGAnimateElement.cpp

Issue 262093006: Oilpan: Make the Node hierarchy RefCountedGarbageCollected instead of TreeShared. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another build fix. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698