Reviewed by Maciej.
[WebKit-https.git] / WebCore / platform / graphics / svg / qt / SVGPaintServerLinearGradientQt.cpp
index c8850399096364e08f9f78a4cfa4c094fc6ea67d..dd9ce3f22bb5ff07295f0187a0f83c0630e4b479 100644 (file)
@@ -70,7 +70,7 @@ bool SVGPaintServerLinearGradient::setup(KRenderingDeviceContext* context, const
 
     // TODO: Gradient transform + opacity fixes!
 
-    if ((type & APPLY_TO_FILL) && renderStyle->svgStyle()->hasFill()) {
+    if ((type & ApplyToFillTargetType) && renderStyle->svgStyle()->hasFill()) {
         fillColorArray(gradient, gradientStops(), opacity);
 
         QBrush brush(gradient);
@@ -79,7 +79,7 @@ bool SVGPaintServerLinearGradient::setup(KRenderingDeviceContext* context, const
         qtContext->setFillRule(renderStyle->svgStyle()->fillRule());
     }
 
-    if ((type & APPLY_TO_STROKE) && renderStyle->svgStyle()->hasStroke()) {
+    if ((type & ApplyToStrokeTargetType) && renderStyle->svgStyle()->hasStroke()) {
         fillColorArray(gradient, gradientStops(), opacity);
 
         QPen pen;