<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>64675</bug_id>
          
          <creation_ts>2011-07-17 21:59:59 -0700</creation_ts>
          <short_desc>[SVG] [Chromium] zero-path-square-cap-rendering.svg is failing</short_desc>
          <delta_ts>2012-01-25 19:47:58 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>71820</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Stephen Chenney">schenney</assigned_to>
          <cc>jamesr</cc>
    
    <cc>rwlbuis</cc>
    
    <cc>schenney</cc>
    
    <cc>tony</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>438333</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-07-17 21:59:59 -0700</bug_when>
    <thetext>Two tests added by http://trac.webkit.org/changeset/91125/ are failing on Chromium Linux:

Results:
http://build.webkit.org/results/Chromium%20Linux%20Release%20(Tests)/r91171%20(21141)/svg/W3C-SVG-1.1-SE/painting-control-04-f-diffs.html
http://build.webkit.org/results/Chromium%20Linux%20Release%20(Tests)/r91171%20(21141)/svg/custom/zero-path-square-cap-rendering-diffs.html

Flakiness dashboard:
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=svg%2FW3C-SVG-1.1-SE%2Fpainting-control-04-f.svg%2Csvg%2Fcustom%2Fzero-path-square-cap-rendering.svg&amp;revision=91126&amp;group=%40ToT%20-%20webkit.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>438334</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-07-17 22:01:09 -0700</bug_when>
    <thetext>They are also failing on Chromium Windows:

http://build.webkit.org/results/Chromium%20Linux%20Release%20(Tests)/r91171%20(21141)/svg/W3C-SVG-1.1-SE/painting-control-04-f-diffs.html

http://build.webkit.org/results/Chromium%20Linux%20Release%20(Tests)/r91171%20(21141)/svg/custom/zero-path-square-cap-rendering-diffs.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>438561</commentid>
    <comment_count>2</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2011-07-18 10:41:51 -0700</bug_when>
    <thetext>Hi,

(In reply to comment #1)
&gt; They are also failing on Chromium Windows:
&gt; 
&gt; http://build.webkit.org/results/Chromium%20Linux%20Release%20(Tests)/r91171%20(21141)/svg/W3C-SVG-1.1-SE/painting-control-04-f-diffs.html
&gt; 
&gt; http://build.webkit.org/results/Chromium%20Linux%20Release%20(Tests)/r91171%20(21141)/svg/custom/zero-path-square-cap-rendering-diffs.html

This should have improved after r91191.
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>438684</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-07-18 13:41:12 -0700</bug_when>
    <thetext>Nope.  They&apos;re still failing :(  This might be Skia related.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>438720</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-07-18 14:27:15 -0700</bug_when>
    <thetext>Committed r91211: &lt;http://trac.webkit.org/changeset/91211&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>438723</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-07-18 14:27:54 -0700</bug_when>
    <thetext>svg/W3C-SVG-1.1-SE/painting-control-04-f.svg is now passing but zero-path-square-cap-rendering.svg is not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>438738</commentid>
    <comment_count>6</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2011-07-18 14:49:49 -0700</bug_when>
    <thetext>Hi,

(In reply to comment #5)
&gt; svg/W3C-SVG-1.1-SE/painting-control-04-f.svg is now passing but zero-path-square-cap-rendering.svg is not.

For anyone looking into the problem on chromium, one thing to check first is check that the m_fillBoundingBox width and height is really zero. This comes from Path which is platform specific. So, the question is what Skia returns for bbox of a path &quot;M 100 100 Z&quot;, if width/height is not exactly zero, the new special handling of zero-length paths will not kick in.
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>516842</commentid>
    <comment_count>7</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2011-12-07 12:39:25 -0800</bug_when>
    <thetext>This is Skia 398: http://code.google.com/p/skia/issues/detail?id=398

Skia throws away the closing &quot;z&quot; in &quot;m 50 50 z&quot; because it considers it redundant. This then causes the Skia SkPath::isEmpty call to fail because Skia considers a path &quot;m 50 50&quot; to be empty.

This makes it impossible to correctly implement SVG zero-length linecaps for such paths.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>533362</commentid>
    <comment_count>8</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-01-10 14:00:41 -0800</bug_when>
    <thetext>This will be fixed with 71820, I hope.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>542851</commentid>
    <comment_count>9</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-01-25 19:47:58 -0800</bug_when>
    <thetext>Changes r105878 and r105921 fix the issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>