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

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

Issue 43223002: SVGTests should not leave detached elements in the tree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Always reattach Created 7 years, 2 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
Index: Source/core/svg/SVGGraphicsElement.cpp
diff --git a/Source/core/svg/SVGGraphicsElement.cpp b/Source/core/svg/SVGGraphicsElement.cpp
index 9da02b36d0c5be6abf56906c9b2bd9bb4be5a591..5b94695ec82fb5117a72c719f407fe8af3384782 100644
--- a/Source/core/svg/SVGGraphicsElement.cpp
+++ b/Source/core/svg/SVGGraphicsElement.cpp
@@ -129,8 +129,11 @@ void SVGGraphicsElement::svgAttributeChanged(const QualifiedName& attrName)
SVGElementInstance::InvalidationGuard invalidationGuard(this);
- if (SVGTests::handleAttributeChange(this, attrName))
+ // Reattach so the isValid() check will be run again during renderer creation.
+ if (SVGTests::isKnownAttribute(attrName)) {
+ lazyReattachIfAttached();
return;
+ }
RenderObject* object = renderer();
if (!object)
« no previous file with comments | « LayoutTests/svg/dynamic-updates/script-tests/SVGUseElement-svgdom-requiredFeatures.js ('k') | Source/core/svg/SVGTests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698