X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=WebCore%2Fkcanvas%2Fdevice%2Fqt%2FKRenderingPaintServerSolidQt.cpp;h=343c49d6127feb4e7c5b089650c81824c3627e63;hp=3a2ef49140c45e3bfc29a8b250a76a3c0920c6b1;hb=6465834f57814614bb7b6d863181daa20aa5ec8e;hpb=1ed5644d4818a9580da2a7075a35c4adf3f43c19 diff --git a/WebCore/kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp b/WebCore/kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp index 3a2ef49140c4..343c49d6127f 100644 --- a/WebCore/kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp +++ b/WebCore/kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp @@ -64,7 +64,7 @@ bool KRenderingPaintServerSolidQt::setup(KRenderingDeviceContext* context, const QColor c = color(); - if ((type & APPLY_TO_FILL) && KSVGPainterFactory::isFilled(renderStyle)) { + if ((type & APPLY_TO_FILL) && renderStyle->svgStyle()->hasFill()) { KRenderingFillPainter fillPainter = KSVGPainterFactory::fillPainter(renderStyle, object); c.setAlphaF(fillPainter.opacity()); @@ -75,7 +75,7 @@ bool KRenderingPaintServerSolidQt::setup(KRenderingDeviceContext* context, const /* if(isPaintingText()) ... */ } - if((type & APPLY_TO_STROKE) && KSVGPainterFactory::isStroked(renderStyle)) { + if((type & APPLY_TO_STROKE) && renderStyle->svgStyle()->hasStroke()) { KRenderingStrokePainter strokePainter = KSVGPainterFactory::strokePainter(renderStyle, object); c.setAlphaF(strokePainter.opacity()); @@ -98,10 +98,10 @@ void KRenderingPaintServerSolidQt::renderPath(KRenderingDeviceContext* context, RenderStyle* renderStyle = path->style(); KRenderingDeviceContextQt* qtContext = static_cast(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(); }