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

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

Issue 234633004: Update <use> trees when the referenced element is changed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | « LayoutTests/svg/dynamic-updates/SVGUseElement-target-changed-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGElementInstance.cpp
diff --git a/Source/core/svg/SVGElementInstance.cpp b/Source/core/svg/SVGElementInstance.cpp
index c735d82990ff5a27384d8646b803cb27d2d93bac..ad2a5bc6d107b9ac8d43062e7d58a0eee8b53470 100644
--- a/Source/core/svg/SVGElementInstance.cpp
+++ b/Source/core/svg/SVGElementInstance.cpp
@@ -171,7 +171,7 @@ void SVGElementInstance::appendChild(PassRefPtr<SVGElementInstance> child)
void SVGElementInstance::invalidateAllInstancesOfElement(SVGElement* element)
{
- if (!element || !element->inDocument())
+ if (!element)
return;
if (element->instanceUpdatesBlocked())
@@ -195,8 +195,6 @@ void SVGElementInstance::invalidateAllInstancesOfElement(SVGElement* element)
element->invalidateShadowTree();
}
}
-
- element->document().updateRenderTreeIfNeeded();
}
const AtomicString& SVGElementInstance::interfaceName() const
« no previous file with comments | « LayoutTests/svg/dynamic-updates/SVGUseElement-target-changed-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698