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

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: 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..4ffbd27775fa6e80d09cab785d57f17d61eb8c1f 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 isValidAndInSVGSubtree();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698