Changeset 19427 in webkit


Ignore:
Timestamp:
Feb 6, 2007 7:34:47 AM (17 years ago)
Author:
eseidel
Message:

2007-02-06 Eric Seidel <eric@webkit.org>

Reviewed by mitz.

WebKit ignores floating point values for stroke-miterlimit
http://bugs.webkit.org/show_bug.cgi?id=12577

Test: svg/W3C-SVG-1.1/painting-stroke-07-t.svg

  • ksvg2/css/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue):
  • ksvg2/css/SVGCSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applySVGProperty):
  • ksvg2/css/SVGRenderStyle.h:
  • ksvg2/css/SVGRenderStyleDefs.h: (WebCore::StyleStrokeData::operator!=):
Location:
trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r19425 r19427  
     12007-02-06  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by mitz.
     4       
     5        http://bugs.webkit.org/show_bug.cgi?id=12577
     6        Update test results now that stroke-miterlimit is a float.
     7
     8        * svg/W3C-SVG-1.1/animate-elem-41-t-expected.txt:
     9        * svg/W3C-SVG-1.1/animate-elem-78-t-expected.txt:
     10        * svg/W3C-SVG-1.1/painting-stroke-03-t-expected.txt:
     11        * svg/W3C-SVG-1.1/painting-stroke-07-t-expected.checksum:
     12        * svg/W3C-SVG-1.1/painting-stroke-07-t-expected.png:
     13        * svg/W3C-SVG-1.1/painting-stroke-07-t-expected.txt:
     14        * svg/W3C-SVG-1.1/struct-group-03-t-expected.txt:
     15
    1162007-02-06  Alexey Proskuryakov  <ap@webkit.org>
    217
  • trunk/LayoutTests/svg/W3C-SVG-1.1/animate-elem-41-t-expected.txt

    r19362 r19427  
    220220            RenderSVGHiddenContainer {defs} at (0,0) size 0x0
    221221              RenderSVGContainer {g} at (4.71,0.53) size 45.59x8.94
    222                 RenderPath {polyline} at (4.71,0.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    223                 RenderPath {polyline} at (34.71,0.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     222                RenderPath {polyline} at (4.71,0.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     223                RenderPath {polyline} at (34.71,0.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    224224            RenderSVGContainer {use} at (169.71,175.53) size 45.59x8.94
    225225              RenderSVGContainer {g} at (169.71,175.53) size 45.59x8.94
    226226                RenderSVGContainer {g} at (169.71,175.53) size 45.59x8.94
    227                   RenderPath {polyline} at (169.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    228                   RenderPath {polyline} at (199.71,175.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     227                  RenderPath {polyline} at (169.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     228                  RenderPath {polyline} at (199.71,175.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    229229            RenderSVGContainer {use} at (279.71,175.53) size 45.59x8.94
    230230              RenderSVGContainer {g} at (279.71,175.53) size 45.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(110.00,0.00)}]
    231231                RenderSVGContainer {g} at (279.71,175.53) size 45.59x8.94
    232                   RenderPath {polyline} at (279.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    233                   RenderPath {polyline} at (309.71,175.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     232                  RenderPath {polyline} at (279.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     233                  RenderPath {polyline} at (309.71,175.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    234234            RenderSVGContainer {use} at (389.71,175.53) size 45.59x8.94
    235235              RenderSVGContainer {g} at (389.71,175.53) size 45.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(220.00,0.00)}]
    236236                RenderSVGContainer {g} at (389.71,175.53) size 45.59x8.94
    237                   RenderPath {polyline} at (389.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    238                   RenderPath {polyline} at (419.71,175.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    239             RenderPath {polyline} at (169.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     237                  RenderPath {polyline} at (389.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     238                  RenderPath {polyline} at (419.71,175.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     239            RenderPath {polyline} at (169.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    240240            RenderSVGContainer {g} at (279.71,175.53) size 22.94x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(110.00,0.00)}]
    241               RenderPath {polyline} at (279.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     241              RenderPath {polyline} at (279.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    242242            RenderSVGContainer {a} at (389.71,175.53) size 22.94x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(220.00,0.00)}]
    243               RenderPath {polyline} at (389.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     243              RenderPath {polyline} at (389.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    244244          RenderSVGContainer {g} at (169.53,193.58) size 270.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(5.00,120.00)}]
    245245            RenderSVGHiddenContainer {defs} at (0,0) size 0x0
    246246              RenderSVGContainer {g} at (4.53,-1.42) size 50.22x12.85
    247                 RenderPath {polyline} at (4.53,-1.42) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    248                 RenderPath {polyline} at (34.53,-1.42) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     247                RenderPath {polyline} at (4.53,-1.42) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     248                RenderPath {polyline} at (34.53,-1.42) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    249249            RenderSVGContainer {use} at (169.53,193.58) size 50.22x12.85
    250250              RenderSVGContainer {g} at (169.53,193.58) size 50.22x12.85
    251251                RenderSVGContainer {g} at (169.53,193.58) size 50.22x12.85
    252                   RenderPath {polyline} at (169.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    253                   RenderPath {polyline} at (199.53,193.58) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     252                  RenderPath {polyline} at (169.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     253                  RenderPath {polyline} at (199.53,193.58) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    254254            RenderSVGContainer {use} at (279.53,193.58) size 50.22x12.85
    255255              RenderSVGContainer {g} at (279.53,193.58) size 50.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(110.00,0.00)}]
    256256                RenderSVGContainer {g} at (279.53,193.58) size 50.22x12.85
    257                   RenderPath {polyline} at (279.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    258                   RenderPath {polyline} at (309.53,193.58) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     257                  RenderPath {polyline} at (279.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     258                  RenderPath {polyline} at (309.53,193.58) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    259259            RenderSVGContainer {use} at (389.53,193.58) size 50.22x12.85
    260260              RenderSVGContainer {g} at (389.53,193.58) size 50.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(220.00,0.00)}]
    261261                RenderSVGContainer {g} at (389.53,193.58) size 50.22x12.85
    262                   RenderPath {polyline} at (389.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    263                   RenderPath {polyline} at (419.53,193.58) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    264             RenderPath {polyline} at (169.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     262                  RenderPath {polyline} at (389.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     263                  RenderPath {polyline} at (419.53,193.58) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     264            RenderPath {polyline} at (169.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    265265            RenderSVGContainer {g} at (279.53,193.58) size 15.95x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(110.00,0.00)}]
    266               RenderPath {polyline} at (279.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     266              RenderPath {polyline} at (279.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    267267            RenderSVGContainer {a} at (389.53,193.58) size 15.95x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(220.00,0.00)}]
    268               RenderPath {polyline} at (389.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     268              RenderPath {polyline} at (389.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    269269          RenderSVGContainer {g} at (155,218.50) size 281.50x3 [transform={m=((1.00,0.00)(0.00,1.00)) t=(-5.00,145.00)}]
    270270            RenderSVGHiddenContainer {defs} at (0,0) size 0x0
  • trunk/LayoutTests/svg/W3C-SVG-1.1/animate-elem-78-t-expected.txt

    r19362 r19427  
    217217            RenderSVGHiddenContainer {defs} at (0,0) size 0x0
    218218              RenderSVGContainer {g} at (4.71,0.53) size 45.59x8.94
    219                 RenderPath {polyline} at (4.71,0.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    220                 RenderPath {polyline} at (34.71,0.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     219                RenderPath {polyline} at (4.71,0.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     220                RenderPath {polyline} at (34.71,0.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    221221            RenderSVGContainer {use} at (169.71,175.53) size 45.59x8.94
    222222              RenderSVGContainer {g} at (169.71,175.53) size 45.59x8.94
    223223                RenderSVGContainer {g} at (169.71,175.53) size 45.59x8.94
    224                   RenderPath {polyline} at (169.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    225                   RenderPath {polyline} at (199.71,175.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     224                  RenderPath {polyline} at (169.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     225                  RenderPath {polyline} at (199.71,175.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    226226            RenderSVGContainer {use} at (279.71,175.53) size 45.59x8.94
    227227              RenderSVGContainer {g} at (279.71,175.53) size 45.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(110.00,0.00)}]
    228228                RenderSVGContainer {g} at (279.71,175.53) size 45.59x8.94
    229                   RenderPath {polyline} at (279.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    230                   RenderPath {polyline} at (309.71,175.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     229                  RenderPath {polyline} at (279.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     230                  RenderPath {polyline} at (309.71,175.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    231231            RenderSVGContainer {use} at (389.71,175.53) size 45.59x8.94
    232232              RenderSVGContainer {g} at (389.71,175.53) size 45.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(220.00,0.00)}]
    233233                RenderSVGContainer {g} at (389.71,175.53) size 45.59x8.94
    234                   RenderPath {polyline} at (389.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    235                   RenderPath {polyline} at (419.71,175.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    236             RenderPath {polyline} at (169.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     234                  RenderPath {polyline} at (389.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     235                  RenderPath {polyline} at (419.71,175.53) size 15.59x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00] [line join=BEVEL]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     236            RenderPath {polyline} at (169.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    237237            RenderSVGContainer {g} at (279.71,175.53) size 22.94x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(110.00,0.00)}]
    238               RenderPath {polyline} at (279.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     238              RenderPath {polyline} at (279.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    239239            RenderSVGContainer {a} at (389.71,175.53) size 22.94x8.94 [transform={m=((1.00,0.00)(0.00,1.00)) t=(220.00,0.00)}]
    240               RenderPath {polyline} at (389.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=10]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
     240              RenderPath {polyline} at (389.71,175.53) size 22.94x8.94 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,2.00L20.00,5.00L5.00,8.00"]
    241241          RenderSVGContainer {g} at (169.53,193.58) size 270.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(5.00,120.00)}]
    242242            RenderSVGHiddenContainer {defs} at (0,0) size 0x0
    243243              RenderSVGContainer {g} at (4.53,-1.42) size 50.22x12.85
    244                 RenderPath {polyline} at (4.53,-1.42) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    245                 RenderPath {polyline} at (34.53,-1.42) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     244                RenderPath {polyline} at (4.53,-1.42) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     245                RenderPath {polyline} at (34.53,-1.42) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    246246            RenderSVGContainer {use} at (169.53,193.58) size 50.22x12.85
    247247              RenderSVGContainer {g} at (169.53,193.58) size 50.22x12.85
    248248                RenderSVGContainer {g} at (169.53,193.58) size 50.22x12.85
    249                   RenderPath {polyline} at (169.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    250                   RenderPath {polyline} at (199.53,193.58) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     249                  RenderPath {polyline} at (169.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     250                  RenderPath {polyline} at (199.53,193.58) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    251251            RenderSVGContainer {use} at (279.53,193.58) size 50.22x12.85
    252252              RenderSVGContainer {g} at (279.53,193.58) size 50.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(110.00,0.00)}]
    253253                RenderSVGContainer {g} at (279.53,193.58) size 50.22x12.85
    254                   RenderPath {polyline} at (279.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    255                   RenderPath {polyline} at (309.53,193.58) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     254                  RenderPath {polyline} at (279.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     255                  RenderPath {polyline} at (309.53,193.58) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    256256            RenderSVGContainer {use} at (389.53,193.58) size 50.22x12.85
    257257              RenderSVGContainer {g} at (389.53,193.58) size 50.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(220.00,0.00)}]
    258258                RenderSVGContainer {g} at (389.53,193.58) size 50.22x12.85
    259                   RenderPath {polyline} at (389.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    260                   RenderPath {polyline} at (419.53,193.58) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    261             RenderPath {polyline} at (169.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     259                  RenderPath {polyline} at (389.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     260                  RenderPath {polyline} at (419.53,193.58) size 20.22x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(30.00,0.00)}] [stroke={[type=SOLID] [color=#CCCCCC] [stroke width=3.00] [miter limit=10.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     261            RenderPath {polyline} at (169.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    262262            RenderSVGContainer {g} at (279.53,193.58) size 15.95x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(110.00,0.00)}]
    263               RenderPath {polyline} at (279.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     263              RenderPath {polyline} at (279.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    264264            RenderSVGContainer {a} at (389.53,193.58) size 15.95x12.85 [transform={m=((1.00,0.00)(0.00,1.00)) t=(220.00,0.00)}]
    265               RenderPath {polyline} at (389.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=1]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
     265              RenderPath {polyline} at (389.53,193.58) size 15.95x12.85 [stroke={[type=SOLID] [color=#CC0066] [stroke width=3.00] [miter limit=1.00]}] [data="M5.00,0.00L20.00,5.00L5.00,10.00"]
    266266          RenderSVGContainer {g} at (155,218.50) size 281.50x3 [transform={m=((1.00,0.00)(0.00,1.00)) t=(-5.00,145.00)}]
    267267            RenderSVGHiddenContainer {defs} at (0,0) size 0x0
  • trunk/LayoutTests/svg/W3C-SVG-1.1/painting-stroke-03-t-expected.txt

    r18436 r19427  
    77            text run at (0,-33) width 474: "Basic paint: stroke properties."
    88        RenderPath {path} at (144.25,54.25) size 217.24x71.50 [stroke={[type=SOLID] [color=#FF0000] [stroke width=30.00] [line cap=ROUND]}] [data="M160.00,70.00L360.00,90.00L160.00,110.00"]
    9         RenderPath {path} at (158.51,175.07) size 202.99x69.85 [stroke={[type=SOLID] [color=#FF0000] [stroke width=30.00] [miter limit=1]}] [data="M160.00,190.00L360.00,210.00L160.00,230.00"]
     9        RenderPath {path} at (158.51,175.07) size 202.99x69.85 [stroke={[type=SOLID] [color=#FF0000] [stroke width=30.00] [miter limit=1.00]}] [data="M160.00,190.00L360.00,210.00L160.00,230.00"]
    1010        RenderSVGText {text} at (60,160) size 480x44
    1111          RenderSVGInlineText {#text} at (0,-36) size 399x44
  • trunk/LayoutTests/svg/W3C-SVG-1.1/painting-stroke-07-t-expected.checksum

    r18436 r19427  
    1 baba7ec5a639701b322810ed43b3697e
     1d8d4ee8d483d6b2aff87d0c6ebe26086
  • trunk/LayoutTests/svg/W3C-SVG-1.1/painting-stroke-07-t-expected.txt

    r18436 r19427  
    44      RenderSVGContainer {g} at (95.67,54.01) size 324.50x215.98
    55        RenderSVGContainer {g} at (95.67,54.01) size 324.50x215.98 [transform={m=((1.20,0.00)(0.00,1.20)) t=(72.00,36.00)}]
    6           RenderPath {path} at (95.67,54.01) size 324.50x35.98 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [miter limit=20]}] [data="M20.00,20.00L200.00,30.00L20.00,40.00"]
    7           RenderPath {path} at (95.67,90.01) size 216.67x35.98 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00]}] [data="M20.00,50.00L200.00,60.00L20.00,70.00"]
    8           RenderPath {path} at (95.67,126.01) size 216.67x35.98 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00]}] [data="M20.00,80.00L200.00,90.00L20.00,100.00"]
    9           RenderPath {path} at (95.67,162.01) size 216.67x35.98 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [miter limit=17]}] [data="M20.00,110.00L200.00,120.00L20.00,130.00"]
     6          RenderPath {path} at (95.67,54.01) size 324.50x35.98 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [miter limit=20.00]}] [data="M20.00,20.00L200.00,30.00L20.00,40.00"]
     7          RenderPath {path} at (95.67,90.01) size 324.50x35.98 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [miter limit=18.10]}] [data="M20.00,50.00L200.00,60.00L20.00,70.00"]
     8          RenderPath {path} at (95.67,126.01) size 216.67x35.98 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [miter limit=17.90]}] [data="M20.00,80.00L200.00,90.00L20.00,100.00"]
     9          RenderPath {path} at (95.67,162.01) size 216.67x35.98 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [miter limit=17.00]}] [data="M20.00,110.00L200.00,120.00L20.00,130.00"]
    1010          RenderPath {path} at (95.67,198.01) size 216.67x35.98 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00]}] [data="M20.00,140.00L200.00,150.00L20.00,160.00"]
    11           RenderPath {path} at (95.67,234.01) size 216.67x35.98 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [miter limit=1]}] [data="M20.00,170.00L200.00,180.00L20.00,190.00"]
     11          RenderPath {path} at (95.67,234.01) size 216.67x35.98 [stroke={[type=SOLID] [color=#000000] [stroke width=10.00] [miter limit=1.00]}] [data="M20.00,170.00L200.00,180.00L20.00,190.00"]
    1212      RenderSVGText {text} at (10,340) size 480x46
    1313        RenderSVGInlineText {#text} at (0,-36) size 264x46
  • trunk/LayoutTests/svg/W3C-SVG-1.1/struct-group-03-t-expected.txt

    r19362 r19427  
    238238            RenderPath {polyline} at (232.58,161.88) size 20.83x33.76 [stroke={[type=SOLID] [color=#00FF00] [stroke width=5.00] [line join=ROUND]}] [data="M3.00,40.00L11.00,10.00L19.00,40.00"]
    239239          RenderSVGContainer {g} at (254.58,164.36) size 20.83x31.29 [transform={m=((1.00,0.00)(0.00,1.00)) t=(198.00,0.00)}]
    240             RenderPath {polyline} at (254.58,164.36) size 20.83x31.29 [stroke={[type=SOLID] [color=#00FF00] [stroke width=5.00] [miter limit=1]}] [data="M3.00,40.00L11.00,10.00L19.00,40.00"]
     240            RenderPath {polyline} at (254.58,164.36) size 20.83x31.29 [stroke={[type=SOLID] [color=#00FF00] [stroke width=5.00] [miter limit=1.00]}] [data="M3.00,40.00L11.00,10.00L19.00,40.00"]
    241241          RenderSVGContainer {g} at (284.50,165) size 5x30 [transform={m=((1.00,0.00)(0.00,1.00)) t=(220.00,0.00)}]
    242242            RenderPath {line} at (284.50,165) size 5x30 [stroke={[type=SOLID] [color=#00FF00] [stroke width=5.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M11.00,10.00L11.00,40.00"]
     
    282282            RenderPath {polyline} at (232.58,211.88) size 20.83x33.76 [stroke={[type=SOLID] [color=#00FF00] [stroke width=5.00] [line join=ROUND]}] [data="M3.00,40.00L11.00,10.00L19.00,40.00"]
    283283          RenderSVGContainer {g} at (254.58,214.36) size 20.83x31.29 [transform={m=((1.00,0.00)(0.00,1.00)) t=(198.00,0.00)}]
    284             RenderPath {polyline} at (254.58,214.36) size 20.83x31.29 [stroke={[type=SOLID] [color=#00FF00] [stroke width=5.00] [miter limit=1]}] [data="M3.00,40.00L11.00,10.00L19.00,40.00"]
     284            RenderPath {polyline} at (254.58,214.36) size 20.83x31.29 [stroke={[type=SOLID] [color=#00FF00] [stroke width=5.00] [miter limit=1.00]}] [data="M3.00,40.00L11.00,10.00L19.00,40.00"]
    285285          RenderSVGContainer {g} at (284.50,215) size 5x30 [transform={m=((1.00,0.00)(0.00,1.00)) t=(220.00,0.00)}]
    286286            RenderPath {line} at (284.50,215) size 5x30 [stroke={[type=SOLID] [color=#00FF00] [stroke width=5.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M11.00,10.00L11.00,40.00"]
  • trunk/WebCore/ChangeLog

    r19426 r19427  
     12007-02-06  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by mitz.
     4
     5        WebKit ignores floating point values for stroke-miterlimit
     6        http://bugs.webkit.org/show_bug.cgi?id=12577
     7       
     8        Test: svg/W3C-SVG-1.1/painting-stroke-07-t.svg
     9
     10        * ksvg2/css/SVGCSSParser.cpp:
     11        (WebCore::CSSParser::parseSVGValue):
     12        * ksvg2/css/SVGCSSStyleSelector.cpp:
     13        (WebCore::CSSStyleSelector::applySVGProperty):
     14        * ksvg2/css/SVGRenderStyle.h:
     15        * ksvg2/css/SVGRenderStyleDefs.h:
     16        (WebCore::StyleStrokeData::operator!=):
     17
    1182007-02-06  Adam Roben  <aroben@apple.com>
    219
  • trunk/WebCore/ksvg2/css/SVGCSSParser.cpp

    r18488 r19427  
    127127
    128128    case SVGCSS_PROP_STROKE_MITERLIMIT:   // <miterlimit> | inherit
    129         valid_primitive = validUnit(value, FInteger|FNonNeg, false);
     129        valid_primitive = validUnit(value, FNumber|FNonNeg, false);
    130130        break;
    131131
  • trunk/WebCore/ksvg2/css/SVGCSSStyleSelector.cpp

    r19362 r19427  
    546546                return;
    547547
    548             svgstyle->setStrokeMiterLimit(lroundf(f));
     548            svgstyle->setStrokeMiterLimit(f);
    549549            break;
    550550        }
  • trunk/WebCore/ksvg2/css/SVGRenderStyle.h

    r19362 r19427  
    109109        RS_DEFINE_ATTRIBUTE_DATAREF_WITH_INITIAL_REFCOUNTED(SVGPaint, stroke, paint, StrokePaint, strokePaint, SVGPaint::defaultStroke())
    110110        RS_DEFINE_ATTRIBUTE_DATAREF_WITH_INITIAL_REFCOUNTED(CSSValueList, stroke, dashArray, StrokeDashArray, strokeDashArray, 0)
    111         RS_DEFINE_ATTRIBUTE_DATAREF_WITH_INITIAL(unsigned int, stroke, miterLimit, StrokeMiterLimit, strokeMiterLimit, 4)
     111        RS_DEFINE_ATTRIBUTE_DATAREF_WITH_INITIAL(float, stroke, miterLimit, StrokeMiterLimit, strokeMiterLimit, 4.0)
    112112       
    113113        RS_DEFINE_ATTRIBUTE_DATAREF_WITH_INITIAL_REFCOUNTED(CSSValue, stroke, width, StrokeWidth, strokeWidth, 0)
  • trunk/WebCore/ksvg2/css/SVGRenderStyleDefs.h

    r18874 r19427  
    121121    public:
    122122        StyleStrokeData();
    123         StyleStrokeData(const StyleStrokeData &other);
    124 
    125         bool operator==(const StyleStrokeData &other) const;
    126         bool operator!=(const StyleStrokeData &other) const
     123        StyleStrokeData(const StyleStrokeData&);
     124
     125        bool operator==(const StyleStrokeData&) const;
     126        bool operator!=(const StyleStrokeData& other) const
    127127        {
    128128            return !(*this == other);
     
    130130
    131131        float opacity;
    132         unsigned int miterLimit;
     132        float miterLimit;
    133133
    134134        RefPtr<CSSValue> width;
     
    139139
    140140    private:
    141         StyleStrokeData &operator=(const StyleStrokeData &);
     141        StyleStrokeData &operator=(const StyleStrokeData&);
    142142    };
    143143
Note: See TracChangeset for help on using the changeset viewer.