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

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

Issue 343443003: Remove SVGElement::rendererIsNeeded (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add remaining rendererIsNeeded changes Created 6 years, 6 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/SVGGElement.cpp
diff --git a/Source/core/svg/SVGGElement.cpp b/Source/core/svg/SVGGElement.cpp
index b9cc50355f2ca895fc93f5e49c5ef77468f1c942..c2e1d965952357f095f3f950234b3392977923c0 100644
--- a/Source/core/svg/SVGGElement.cpp
+++ b/Source/core/svg/SVGGElement.cpp
@@ -82,7 +82,7 @@ bool SVGGElement::rendererIsNeeded(const RenderStyle&)
{
// Unlike SVGElement::rendererIsNeeded(), we still create renderers, even if
// display is set to 'none' - which is special to SVG <g> container elements.
- return parentOrShadowHostElement() && parentOrShadowHostElement()->isSVGElement();
+ return ((parentOrShadowHostElement() && parentOrShadowHostElement()->isSVGElement()) && isValid());
esprehn 2014/06/17 23:09:40 Remove parens, it's all &&.
}
}

Powered by Google App Engine
This is Rietveld 408576698