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

Unified Diff: Source/core/svg/animation/SVGSMILElement.cpp

Issue 344883007: SVG: Move/rename reference management to SVGElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove sed script from CL Created 6 years, 6 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
« no previous file with comments | « Source/core/svg/SVGUseElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/animation/SVGSMILElement.cpp
diff --git a/Source/core/svg/animation/SVGSMILElement.cpp b/Source/core/svg/animation/SVGSMILElement.cpp
index 0d1b9b14871eb12270de5ddb1443c972808b5bed..20c1eb8a6add3859fd6edd8efbac792bce0bbc27 100644
--- a/Source/core/svg/animation/SVGSMILElement.cpp
+++ b/Source/core/svg/animation/SVGSMILElement.cpp
@@ -210,7 +210,7 @@ SVGSMILElement::~SVGSMILElement()
void SVGSMILElement::clearResourceAndEventBaseReferences()
{
- document().accessSVGExtensions().removeAllTargetReferencesForElement(this);
+ removeAllOutgoingReferences();
}
void SVGSMILElement::clearConditions()
@@ -257,7 +257,7 @@ void SVGSMILElement::buildPendingResource()
} else {
// Register us with the target in the dependencies map. Any change of hrefElement
// that leads to relayout/repainting now informs us, so we can react to it.
- document().accessSVGExtensions().addElementReferencingTarget(this, svgTarget);
+ addReferenceTo(svgTarget);
}
connectEventBaseConditions();
}
@@ -640,7 +640,7 @@ void SVGSMILElement::connectEventBaseConditions()
ASSERT(!condition->eventListener());
condition->setEventListener(ConditionEventListener::create(this, condition));
eventBase->addEventListener(AtomicString(condition->name()), condition->eventListener(), false);
- document().accessSVGExtensions().addElementReferencingTarget(this, eventBase);
+ addReferenceTo(eventBase);
}
}
}
« no previous file with comments | « Source/core/svg/SVGUseElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698