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

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

Issue 19097005: Remove one SVG animated type special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the regressions Created 7 years, 5 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
Index: Source/core/svg/SVGLinearGradientElement.cpp
diff --git a/Source/core/svg/SVGLinearGradientElement.cpp b/Source/core/svg/SVGLinearGradientElement.cpp
index 2362070dd756fb699c55c85207fb911734e71318..b74bf9c14c0832f2887f32911ee20cf7e044ef7e 100644
--- a/Source/core/svg/SVGLinearGradientElement.cpp
+++ b/Source/core/svg/SVGLinearGradientElement.cpp
@@ -130,14 +130,14 @@ bool SVGLinearGradientElement::collectGradientAttributes(LinearGradientAttribute
return false;
if (!attributes.hasSpreadMethod() && current->hasAttribute(SVGNames::spreadMethodAttr))
- attributes.setSpreadMethod(current->spreadMethod());
+ attributes.setSpreadMethod(current->spreadMethodCurrentValue());
if (!attributes.hasGradientUnits() && current->hasAttribute(SVGNames::gradientUnitsAttr))
- attributes.setGradientUnits(current->gradientUnits());
+ attributes.setGradientUnits(current->gradientUnitsCurrentValue());
if (!attributes.hasGradientTransform() && current->hasAttribute(SVGNames::gradientTransformAttr)) {
AffineTransform transform;
- current->gradientTransform().concatenate(transform);
+ current->gradientTransformCurrentValue().concatenate(transform);
attributes.setGradientTransform(transform);
}
@@ -151,22 +151,22 @@ bool SVGLinearGradientElement::collectGradientAttributes(LinearGradientAttribute
SVGLinearGradientElement* linear = static_cast<SVGLinearGradientElement*>(current);
if (!attributes.hasX1() && current->hasAttribute(SVGNames::x1Attr))
- attributes.setX1(linear->x1());
+ attributes.setX1(linear->x1CurrentValue());
if (!attributes.hasY1() && current->hasAttribute(SVGNames::y1Attr))
- attributes.setY1(linear->y1());
+ attributes.setY1(linear->y1CurrentValue());
if (!attributes.hasX2() && current->hasAttribute(SVGNames::x2Attr))
- attributes.setX2(linear->x2());
+ attributes.setX2(linear->x2CurrentValue());
if (!attributes.hasY2() && current->hasAttribute(SVGNames::y2Attr))
- attributes.setY2(linear->y2());
+ attributes.setY2(linear->y2CurrentValue());
}
processedGradients.add(current);
// Respect xlink:href, take attributes from referenced element
- Node* refNode = SVGURIReference::targetElementFromIRIString(current->href(), document());
+ Node* refNode = SVGURIReference::targetElementFromIRIString(current->hrefCurrentValue(), document());
if (refNode && (refNode->hasTagName(SVGNames::linearGradientTag) || refNode->hasTagName(SVGNames::radialGradientTag))) {
current = static_cast<SVGGradientElement*>(refNode);
@@ -186,10 +186,10 @@ bool SVGLinearGradientElement::collectGradientAttributes(LinearGradientAttribute
bool SVGLinearGradientElement::selfHasRelativeLengths() const
{
- return x1().isRelative()
- || y1().isRelative()
- || x2().isRelative()
- || y2().isRelative();
+ return x1CurrentValue().isRelative()
+ || y1CurrentValue().isRelative()
+ || x2CurrentValue().isRelative()
+ || y2CurrentValue().isRelative();
}
}

Powered by Google App Engine
This is Rietveld 408576698