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

Unified Diff: third_party/WebKit/Source/core/svg/SVGRadialGradientElement.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/SVGRadialGradientElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGRadialGradientElement.cpp b/third_party/WebKit/Source/core/svg/SVGRadialGradientElement.cpp
index 145c7993d7b397cbc08830b1ea24d0e26042712f..ea68ca565204e208d86b80e2037a0597ebc82342 100644
--- a/third_party/WebKit/Source/core/svg/SVGRadialGradientElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGRadialGradientElement.cpp
@@ -114,12 +114,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