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

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

Issue 2478233002: Make 'transform' a presentation attribute on SVG elements (Closed)
Patch Set: Updated expectations Created 4 years, 1 month 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/SVGLinearGradientElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLinearGradientElement.cpp b/third_party/WebKit/Source/core/svg/SVGLinearGradientElement.cpp
index 3460fc6bb3808283b07f7c2f585673cacf448371..f252a38d45f10baf3b8e1a3789871d8bb4482ff4 100644
--- a/third_party/WebKit/Source/core/svg/SVGLinearGradientElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLinearGradientElement.cpp
@@ -105,12 +105,8 @@ static void setGradientAttributes(SVGGradientElement* element,
attributes.setGradientUnits(
element->gradientUnits()->currentValue()->enumValue());
- if (!attributes.hasGradientTransform() &&
- element->gradientTransform()->isSpecified()) {
- AffineTransform transform;
- element->gradientTransform()->currentValue()->concatenate(transform);
- attributes.setGradientTransform(transform);
- }
+ if (!attributes.hasGradientTransform() && element->hasTransform())
+ attributes.setGradientTransform(element->calculateTransform());
if (!attributes.hasStops()) {
const Vector<Gradient::ColorStop>& stops(element->buildStops());

Powered by Google App Engine
This is Rietveld 408576698