Changeset 38435 in webkit
- Timestamp:
- Nov 15, 2008 3:24:04 PM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r38426 r38435 1 2008-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 1 11 2008-11-15 Dirk Schulze <krit@webkit.org> 2 12 -
trunk/WebCore/svg/graphics/SVGPaintServerSolid.cpp
r38426 r38435 67 67 68 68 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()); 74 71 context->setFillRule(svgStyle->fillRule()); 75 context->setFillColor(rgba);76 72 77 73 if (isPaintingText) … … 80 76 81 77 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()); 88 80 89 81 if (style)
Note: See TracChangeset
for help on using the changeset viewer.