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

Unified Diff: Source/core/svg/SVGRadialGradientElement.cpp

Issue 423093014: [SVG2] Make transform, gradientTransform and patternTransform presentation attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline for mac/win Created 6 years, 4 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 | « Source/core/svg/SVGPatternElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGRadialGradientElement.cpp
diff --git a/Source/core/svg/SVGRadialGradientElement.cpp b/Source/core/svg/SVGRadialGradientElement.cpp
index b83917440a9b7cee3481c770fcc687b5e4bc15f8..1307f0947352ad561df87e7db3dfeb2161448199 100644
--- a/Source/core/svg/SVGRadialGradientElement.cpp
+++ b/Source/core/svg/SVGRadialGradientElement.cpp
@@ -127,10 +127,8 @@ static void setGradientAttributes(SVGGradientElement* element, RadialGradientAtt
if (!attributes.hasGradientUnits() && element->gradientUnits()->isSpecified())
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()) {
+ attributes.setGradientTransformFromStyle(element);
}
if (!attributes.hasStops()) {
« no previous file with comments | « Source/core/svg/SVGPatternElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698