Lines Matching refs:gradient

112 void CSSGradientValue::addStops(Gradient* gradient, RenderObject* renderer, RenderStyle* rootStyle, float maxLengthForRepeat)
130 gradient->addColorStop(offset, color);
134 gradient->setStopsSorted(true);
145 FloatPoint gradientStart = gradient->p0();
148 gradientEnd = gradient->p1();
150 gradientEnd = gradientStart + FloatSize(gradient->endRadius(), 0);
230 // If the gradient is repeating, repeat the color stops.
232 // because we have to know the extent of the gradient, and possible move the end points.
235 // the gradient defines a solid-color image with the color of the last color-stop in the rule.
302 // If the gradient goes outside the 0-1 range, normalize it by moving the endpoints, and adjusting the stops.
312 FloatPoint p0 = gradient->p0();
313 FloatPoint p1 = gradient->p1();
314 gradient->setP0(FloatPoint(p0.x() + firstOffset * (p1.x() - p0.x()), p0.y() + firstOffset * (p1.y() - p0.y())));
315 gradient->setP1(FloatPoint(p1.x() + (lastOffset - 1) * (p1.x() - p0.x()), p1.y() + (lastOffset - 1) * (p1.y() - p0.y())));
354 gradient->setStartRadius(gradient->startRadius() * scale);
355 gradient->setEndRadius(gradient->endRadius() * scale);
360 gradient->addColorStop(stops[i].offset, stops[i].color);
362 gradient->setStopsSorted(true);
429 result = "-webkit-gradient(linear, ";
446 result = m_repeating ? "-webkit-repeating-linear-gradient(" : "-webkit-linear-gradient(";
474 // Compute the endpoints so that a gradient of the given angle covers a box of the given size.
553 RefPtr<Gradient> gradient = Gradient::create(firstPoint, secondPoint);
556 addStops(gradient.get(), renderer, rootStyle, 1);
558 return gradient.release();
566 result = "-webkit-gradient(radial, ";
589 result = m_repeating ? "-webkit-repeating-radial-gradient(" : "-webkit-radial-gradient(";
815 // If <shape> is ellipse, the gradient-shape has the same ratio of width to height
832 // If <shape> is ellipse, the gradient-shape has the same ratio of width to height
845 RefPtr<Gradient> gradient = Gradient::create(firstPoint, firstRadius, secondPoint, secondRadius, aspectRatio);
855 addStops(gradient.get(), renderer, rootStyle, maxExtent);
857 return gradient.release();