Lines Matching refs:context
45 bool RenderSVGResourceSolidColor::applyResource(RenderObject* object, RenderStyle* style, GraphicsContext*& context, unsigned short resourceMode)
50 ASSERT(context);
57 context->setAlpha(svgStyle ? svgStyle->fillOpacity() : 1.0f);
58 context->setFillColor(m_color, colorSpace);
59 context->setFillRule(svgStyle ? svgStyle->fillRule() : RULE_NONZERO);
62 context->setTextDrawingMode(TextModeFill);
64 context->setAlpha(svgStyle ? svgStyle->strokeOpacity() : 1.0f);
65 context->setStrokeColor(m_color, colorSpace);
68 SVGRenderSupport::applyStrokeStyleToContext(context, style, object);
71 context->setTextDrawingMode(TextModeStroke);
77 void RenderSVGResourceSolidColor::postApplyResource(RenderObject*, GraphicsContext*& context, unsigned short resourceMode, const Path* path)
79 ASSERT(context);
84 context->fillPath(*path);
86 context->strokePath(*path);