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

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

Issue 2689083004: Don't unconditionally generate a layout object for SVG <stop> elements. (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
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/svg-in-html.html ('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/SVGStopElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGStopElement.cpp b/third_party/WebKit/Source/core/svg/SVGStopElement.cpp
index 1ed3eeb894dd8a76ab158a3da476c905d7ac7fda..21af79c0f989e1e95795701eaae44eb0b0546588 100644
--- a/third_party/WebKit/Source/core/svg/SVGStopElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGStopElement.cpp
@@ -56,7 +56,7 @@ LayoutObject* SVGStopElement::createLayoutObject(const ComputedStyle&) {
}
bool SVGStopElement::layoutObjectIsNeeded(const ComputedStyle&) {
- return true;
+ return isValid() && hasSVGParent();
}
Color SVGStopElement::stopColorIncludingOpacity() const {
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/svg-in-html.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698