Changeset 58243 in webkit


Ignore:
Timestamp:
Apr 26, 2010 3:05:10 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-26 Zoltan Herczeg <zherczeg@webkit.org>

Reviewed by Dirk Schulze.

Call setStrokeStyle in applyStrokeStyleToContext
https://bugs.webkit.org/show_bug.cgi?id=37849

Not all platforms set the stroke style to solid if they
get an empty line dash array. Some just ignore the operation.

  • rendering/SVGRenderSupport.cpp: (WebCore::applyStrokeStyleToContext):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r58242 r58243  
     12010-04-26  Zoltan Herczeg  <zherczeg@webkit.org>
     2
     3        Reviewed by Dirk Schulze.
     4
     5        Call setStrokeStyle in applyStrokeStyleToContext
     6        https://bugs.webkit.org/show_bug.cgi?id=37849
     7
     8        Not all platforms set the stroke style to solid if they
     9        get an empty line dash array. Some just ignore the operation.
     10
     11        * rendering/SVGRenderSupport.cpp:
     12        (WebCore::applyStrokeStyleToContext):
     13
    1142010-04-23  Ilya Tikhonovsky  <loislo@chromium.org>
    215
  • trunk/WebCore/rendering/SVGRenderSupport.cpp

    r58214 r58243  
    400400    const DashArray& dashes = dashArrayFromRenderingStyle(object->style(), object->document()->documentElement()->renderStyle());
    401401    float dashOffset = SVGRenderStyle::cssPrimitiveToLength(object, style->svgStyle()->strokeDashOffset(), 0.0f);
    402     context->setLineDash(dashes, dashOffset);
     402    if (dashes.isEmpty())
     403        context->setStrokeStyle(SolidStroke);
     404    else
     405        context->setLineDash(dashes, dashOffset);
    403406}
    404407
Note: See TracChangeset for help on using the changeset viewer.