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

Unified Diff: third_party/WebKit/Source/core/svg/SVGUseElement.cpp

Issue 2537143004: Stop a SVG <use> element from modifying its UA shadow tree when it is removed (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGUseElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
index 0091e379c49c51509fc433fdddcdec468b55db6e..091fade514573943bcd9de381310def48a40a0d1 100644
--- a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
@@ -128,7 +128,8 @@ Node::InsertionNotificationRequest SVGUseElement::insertedInto(
void SVGUseElement::removedFrom(ContainerNode* rootParent) {
SVGGraphicsElement::removedFrom(rootParent);
if (rootParent->isConnected()) {
- clearShadowTree();
+ clearInstanceRoot();
+ removeAllOutgoingReferences();
cancelShadowTreeRecreation();
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698