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

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

Issue 2478233002: Make 'transform' a presentation attribute on SVG elements (Closed)
Patch Set: Rebase 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..af4079dc6e67a5b8870c2ac13eddc2b2f6bd543b 100644
--- a/third_party/WebKit/Source/core/svg/SVGLinearGradientElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLinearGradientElement.cpp
@@ -106,10 +106,9 @@ static void setGradientAttributes(SVGGradientElement* element,
element->gradientUnits()->currentValue()->enumValue());
if (!attributes.hasGradientTransform() &&
- element->gradientTransform()->isSpecified()) {
- AffineTransform transform;
- element->gradientTransform()->currentValue()->concatenate(transform);
- attributes.setGradientTransform(transform);
+ element->hasTransform(SVGElement::ExcludeMotionTransform)) {
+ attributes.setGradientTransform(
+ element->calculateTransform(SVGElement::ExcludeMotionTransform));
}
if (!attributes.hasStops()) {
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGGraphicsElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPatternElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698