X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=WebCore%2Fkcanvas%2Fdevice%2Fqt%2FKRenderingPaintServerGradientQt.cpp;h=45922f40a3cad8ba5996b4874d088b0287fe7f94;hp=779a7af0005ae010b923be649374a38d69226776;hb=6465834f57814614bb7b6d863181daa20aa5ec8e;hpb=1ed5644d4818a9580da2a7075a35c4adf3f43c19 diff --git a/WebCore/kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp b/WebCore/kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp index 779a7af0005a..45922f40a3ca 100644 --- a/WebCore/kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp +++ b/WebCore/kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp @@ -60,10 +60,10 @@ void KRenderingPaintServerLinearGradientQt::renderPath(KRenderingDeviceContext* 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(); } @@ -106,7 +106,7 @@ bool KRenderingPaintServerLinearGradientQt::setup(KRenderingDeviceContext* conte // 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); @@ -116,7 +116,7 @@ bool KRenderingPaintServerLinearGradientQt::setup(KRenderingDeviceContext* conte 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); @@ -222,7 +222,7 @@ bool KRenderingPaintServerRadialGradientQt::setup(KRenderingDeviceContext* conte // 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); @@ -232,7 +232,7 @@ bool KRenderingPaintServerRadialGradientQt::setup(KRenderingDeviceContext* conte 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); @@ -266,10 +266,10 @@ void KRenderingPaintServerRadialGradientQt::renderPath(KRenderingDeviceContext* 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(); }