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

Unified Diff: Source/core/svg/SVGUseElement.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/SVGTextPathElement.cpp ('k') | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGUseElement.cpp
diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp
index 70c20d2a09984a6db9fb3e53939a5241357b8272..181ceb064babff5b85a6ab0a81a0c561c7b404e9 100644
--- a/Source/core/svg/SVGUseElement.cpp
+++ b/Source/core/svg/SVGUseElement.cpp
@@ -309,7 +309,7 @@ void SVGUseElement::clearResourceReferences()
m_needsShadowTreeRecreation = false;
document().unscheduleUseShadowTreeUpdate(*this);
- document().accessSVGExtensions().removeAllTargetReferencesForElement(this);
+ removeAllOutgoingReferences();
}
void SVGUseElement::buildPendingResource()
@@ -477,7 +477,7 @@ bool SVGUseElement::buildShadowTree(SVGElement* target, SVGElement* targetInstan
// We only need to track first degree <use> dependencies. Indirect references are handled
// as the invalidation bubbles up the dependency chain.
if (!foundUse && !isStructurallyExternal()) {
- document().accessSVGExtensions().addElementReferencingTarget(this, target);
+ addReferenceTo(target);
foundUse = true;
}
} else if (isDisallowedElement(target)) {
« no previous file with comments | « Source/core/svg/SVGTextPathElement.cpp ('k') | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698