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

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

Issue 15398006: SVGTests should lazyAttach (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTests.cpp
diff --git a/Source/core/svg/SVGTests.cpp b/Source/core/svg/SVGTests.cpp
index 41b64a2174258587f6a5366b027f58ccaaf8fe3b..fda18cfbee180dbb8c49533aed58127867c6fcef 100644
--- a/Source/core/svg/SVGTests.cpp
+++ b/Source/core/svg/SVGTests.cpp
@@ -156,10 +156,9 @@ bool SVGTests::handleAttributeChange(SVGElement* targetElement, const QualifiedN
return true;
bool valid = targetElement->isValid();
- bool attached = targetElement->attached();
- if (valid && !attached && targetElement->parentNode()->attached())
- targetElement->attach();
- else if (!valid && attached)
+ if (valid && !targetElement->attached() && targetElement->parentNode()->attached())
+ targetElement->lazyAttach();
+ else if (!valid && targetElement->attached())
targetElement->detach();
return true;
« 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