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

Unified Diff: Source/core/svg/SVGGradientElement.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/SVGGradientElement.cpp
diff --git a/Source/core/svg/SVGGradientElement.cpp b/Source/core/svg/SVGGradientElement.cpp
index 41addd8d24f115eebf9243ac01ee1f44af3ea47a..baa9881b721c146e6749071b0843d1a42fb8d109 100644
--- a/Source/core/svg/SVGGradientElement.cpp
+++ b/Source/core/svg/SVGGradientElement.cpp
@@ -150,7 +150,7 @@ Vector<Gradient::ColorStop> SVGGradientElement::buildStops()
Color color = stop->stopColorIncludingOpacity();
// Figure out right monotonic offset
- float offset = stop->offset();
+ float offset = stop->offsetCurrentValue();
offset = std::min(std::max(previousOffset, offset), 1.0f);
previousOffset = offset;

Powered by Google App Engine
This is Rietveld 408576698