| Index: Source/core/svg/SVGGradientElement.cpp
|
| diff --git a/Source/core/svg/SVGGradientElement.cpp b/Source/core/svg/SVGGradientElement.cpp
|
| index eea0849fbf32baeae45f8bb46906d9031938faf0..68229f997f43082b32a7c86edaf2ea4796692c0c 100644
|
| --- a/Source/core/svg/SVGGradientElement.cpp
|
| +++ b/Source/core/svg/SVGGradientElement.cpp
|
| @@ -125,19 +125,12 @@ Vector<Gradient::ColorStop> SVGGradientElement::buildStops()
|
|
|
| float previousOffset = 0.0f;
|
| for (SVGStopElement* stop = Traversal<SVGStopElement>::firstChild(*this); stop; stop = Traversal<SVGStopElement>::nextSibling(*stop)) {
|
| - Color color = stop->stopColorIncludingOpacity();
|
| -
|
| // Figure out right monotonic offset
|
| float offset = stop->offset()->currentValue()->value();
|
| offset = std::min(std::max(previousOffset, offset), 1.0f);
|
| previousOffset = offset;
|
|
|
| - // Extract individual channel values
|
| - // FIXME: Why doesn't ColorStop take a Color and an offset??
|
| - float r, g, b, a;
|
| - color.getRGBA(r, g, b, a);
|
| -
|
| - stops.append(Gradient::ColorStop(offset, r, g, b, a));
|
| + stops.append(Gradient::ColorStop(offset, stop->stopColorIncludingOpacity()));
|
| }
|
|
|
| return stops;
|
|
|