Home | History | Annotate | Download | only in svg

Lines Matching refs:gradient

163     // then the given effect (e.g. a gradient or a filter) will be ignored.
174 // Create gradient object
175 if (!gradientData->gradient) {
178 // CG platforms will handle the gradient space transform for text after applying the
180 // box applied to the gradient space transform now, so the gradient shader can use it.
194 gradientData->gradient->setGradientSpaceTransform(gradientData->userspaceTransform);
197 if (!gradientData->gradient)
200 // Draw gradient
219 context->setFillGradient(gradientData->gradient);
223 gradientData->gradient->setGradientSpaceTransform(transformOnNonScalingStroke(object, gradientData->userspaceTransform));
225 context->setStrokeGradient(gradientData->gradient);
239 // CG requires special handling for gradient on text
251 gradientData->gradient->setGradientSpaceTransform(clipToTextMask(context, m_imageBuffer, targetRect, object, boundingBoxMode(), gradientTransform));
252 context->setFillGradient(gradientData->gradient);
270 void RenderSVGResourceGradient::addStops(GradientData* gradientData, const Vector<Gradient::ColorStop>& stops) const
272 ASSERT(gradientData->gradient);
274 const Vector<Gradient::ColorStop>::const_iterator end = stops.end();
275 for (Vector<Gradient::ColorStop>::const_iterator it = stops.begin(); it != end; ++it)
276 gradientData->gradient->addColorStop(*it);