RenderStyle* renderStyle = path->style();
KRenderingDeviceContextQt* qtContext = static_cast<KRenderingDeviceContextQt*>(context);
- if ((type & APPLY_TO_FILL) && KSVGPainterFactory::isFilled(renderStyle))
+ if ((type & APPLY_TO_FILL) && renderStyle->svgStyle()->hasFill())
qtContext->fillPath();
- if ((type & APPLY_TO_STROKE) && KSVGPainterFactory::isStroked(renderStyle))
+ if ((type & APPLY_TO_STROKE) && renderStyle->svgStyle()->hasStroke())
qtContext->strokePath();
}
// TODO: Gradient transform + opacity fixes!
- if ((type & APPLY_TO_FILL) && KSVGPainterFactory::isFilled(renderStyle)) {
+ if ((type & APPLY_TO_FILL) && renderStyle->svgStyle()->hasFill()) {
KRenderingFillPainter fillPainter = KSVGPainterFactory::fillPainter(renderStyle, object);
fill_color_array(gradient, gradientStops(), opacity);
qtContext->setFillRule(fillPainter.fillRule());
}
- if ((type & APPLY_TO_STROKE) && KSVGPainterFactory::isStroked(renderStyle)) {
+ if ((type & APPLY_TO_STROKE) && renderStyle->svgStyle()->hasStroke()) {
KRenderingStrokePainter strokePainter = KSVGPainterFactory::strokePainter(renderStyle, object);
fill_color_array(gradient, gradientStops(), opacity);
// gradientTrans.map(cx, cy, &cx, &cy);
// qtContext->painter().setMatrix(mat);
- if ((type & APPLY_TO_FILL) && KSVGPainterFactory::isFilled(renderStyle)) {
+ if ((type & APPLY_TO_FILL) && renderStyle->svgStyle()->hasFill()) {
KRenderingFillPainter fillPainter = KSVGPainterFactory::fillPainter(renderStyle, object);
fill_color_array(gradient, gradientStops(), opacity);
qtContext->setFillRule(fillPainter.fillRule());
}
- if ((type & APPLY_TO_STROKE) && KSVGPainterFactory::isStroked(renderStyle)) {
+ if ((type & APPLY_TO_STROKE) && renderStyle->svgStyle()->hasStroke()) {
KRenderingStrokePainter strokePainter = KSVGPainterFactory::strokePainter(renderStyle, object);
fill_color_array(gradient, gradientStops(), opacity);
RenderStyle* renderStyle = path->style();
KRenderingDeviceContextQt* qtContext = static_cast<KRenderingDeviceContextQt*>(context);
- if ((type & APPLY_TO_FILL) && KSVGPainterFactory::isFilled(renderStyle))
+ if ((type & APPLY_TO_FILL) && renderStyle->svgStyle()->hasFill())
qtContext->fillPath();
- if ((type & APPLY_TO_STROKE) && KSVGPainterFactory::isStroked(renderStyle))
+ if ((type & APPLY_TO_STROKE) && renderStyle->svgStyle()->hasStroke())
qtContext->strokePath();
}