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

Unified Diff: third_party/WebKit/Source/core/svg/SVGRadialGradientElement.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/SVGRadialGradientElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGRadialGradientElement.cpp b/third_party/WebKit/Source/core/svg/SVGRadialGradientElement.cpp
index 145c7993d7b397cbc08830b1ea24d0e26042712f..ce9fc398d8ebe925d0f10f46d0e676a6ccc41d77 100644
--- a/third_party/WebKit/Source/core/svg/SVGRadialGradientElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGRadialGradientElement.cpp
@@ -115,10 +115,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/SVGPatternElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGTransformList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698