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

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

Issue 2688343002: Unify SVG parent checks for LayoutObject construction using always the light tree parent. (Closed)
Patch Set: Unify SVG parent checks for LayoutObject construction using always the light tree parent. Created 3 years, 10 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: third_party/WebKit/Source/core/svg/SVGGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGGElement.cpp b/third_party/WebKit/Source/core/svg/SVGGElement.cpp
index 3198284ca099b9109146d58db4c00fe05b9b0d7c..1d5541a8c72008b31a06d6dc792632bc0d45ca21 100644
--- a/third_party/WebKit/Source/core/svg/SVGGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGGElement.cpp
@@ -48,8 +48,7 @@ bool SVGGElement::layoutObjectIsNeeded(const ComputedStyle&) {
// Unlike SVGElement::layoutObjectIsNeeded(), we still create layoutObjects,
// even if display is set to 'none' - which is special to SVG <g> container
// elements.
- return parentOrShadowHostElement() &&
- parentOrShadowHostElement()->isSVGElement() && isValid();
+ return isValid() && hasSVGParent();
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698