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

Unified Diff: third_party/WebKit/Source/core/svg/SVGMarkerElement.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/SVGMarkerElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp b/third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp
index f44a0770c593ed5613b3ce69bf809f9d4e3fec86..1925c5d5e59fc56389542a6a9cc0e2bc35285264 100644
--- a/third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp
@@ -159,8 +159,7 @@ bool SVGMarkerElement::selfHasRelativeLengths() const {
}
bool SVGMarkerElement::layoutObjectIsNeeded(const ComputedStyle&) {
- ContainerNode* parent = FlatTreeTraversal::parent(*this);
- return parent && parent->isSVGElement() && isValid();
+ return isValid() && hasSVGParent();
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGGElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGSVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698