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

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

Issue 2694573002: Don't unconditionally create a LayoutObject for SVGMarkerElement. (Closed)
Patch Set: Don't unconditionally create a LayoutObject for SVGMarkerElement. 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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGMarkerElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ff874a564ed4c544ffe50b0a5015d2854b97ca7e..f44a0770c593ed5613b3ce69bf809f9d4e3fec86 100644
--- a/third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp
@@ -158,4 +158,9 @@ bool SVGMarkerElement::selfHasRelativeLengths() const {
m_markerHeight->currentValue()->isRelative();
}
+bool SVGMarkerElement::layoutObjectIsNeeded(const ComputedStyle&) {
+ ContainerNode* parent = FlatTreeTraversal::parent(*this);
+ return parent && parent->isSVGElement() && isValid();
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGMarkerElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698