Index: Source/core/svg/SVGUseElement.cpp |
diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp |
index 3ff826babec787ae574c67827c586484f61a4e86..90fcdc7690944fa5d366cb8294a0fa71161b5770 100644 |
--- a/Source/core/svg/SVGUseElement.cpp |
+++ b/Source/core/svg/SVGUseElement.cpp |
@@ -391,6 +391,10 @@ void SVGUseElement::buildShadowAndInstanceTree(SVGElement* target) |
return; |
} |
+ // Add a reference such that if the target is removed we tear down the |
+ // corresponding shadowtree. |
+ addReferenceTo(target); |
pdr.
2015/04/17 04:57:25
It's been a while since I've been in SVGUseElement
|
+ |
if (instanceTreeIsLoading(m_targetElementInstance.get())) |
return; |