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 |