Changeset 38435 in webkit


Ignore:
Timestamp:
Nov 15, 2008 3:24:04 PM (15 years ago)
Author:
krit@webkit.org
Message:

2008-11-15 Dirk Schulze <krit@webkit.org>

Reviewed by Geoffrey Garen.

r38426 caused a wrong drawing of a LayoutTest. Use another
way to set the color to pass this test again.

  • svg/graphics/SVGPaintServerSolid.cpp: (WebCore::SVGPaintServerSolid::setup):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r38426 r38435  
     12008-11-15  Dirk Schulze  <krit@webkit.org>
     2
     3        Reviewed by Geoffrey Garen.
     4
     5        r38426 caused a wrong drawing of a LayoutTest. Use another
     6        way to set the color to pass this test again.
     7
     8        * svg/graphics/SVGPaintServerSolid.cpp:
     9        (WebCore::SVGPaintServerSolid::setup):
     10
    1112008-11-15  Dirk Schulze  <krit@webkit.org>
    212
  • trunk/WebCore/svg/graphics/SVGPaintServerSolid.cpp

    r38426 r38435  
    6767
    6868    if ((type & ApplyToFillTargetType) && (!style || svgStyle->hasFill())) {
    69         RGBA32 rgba = color().rgb();
    70         ASSERT(!color().hasAlpha());
    71         if (style)
    72             rgba = colorWithOverrideAlpha(rgba, svgStyle->fillOpacity());
    73 
     69        context->setAlpha(svgStyle->fillOpacity());
     70        context->setFillColor(color().rgb());
    7471        context->setFillRule(svgStyle->fillRule());
    75         context->setFillColor(rgba);
    7672
    7773        if (isPaintingText)
     
    8076
    8177    if ((type & ApplyToStrokeTargetType) && (!style || svgStyle->hasStroke())) {
    82         RGBA32 rgba = color().rgb();
    83         ASSERT(!color().hasAlpha());
    84         if (style)
    85             rgba = colorWithOverrideAlpha(rgba, svgStyle->strokeOpacity());
    86 
    87         context->setStrokeColor(rgba);
     78        context->setAlpha(svgStyle->strokeOpacity());
     79        context->setStrokeColor(color().rgb());
    8880
    8981        if (style)
Note: See TracChangeset for help on using the changeset viewer.