<?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>77020</bug_id>
          
          <creation_ts>2012-01-25 09:48:07 -0800</creation_ts>
          <short_desc>[Qt]: SVG Bounding boxes are wrong for zero-length subpaths</short_desc>
          <delta_ts>2014-02-03 03:19:49 -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>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>
          
          <blocked>77964</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Stephen Chenney">schenney</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>kadam</cc>
    
    <cc>kbalazs</cc>
    
    <cc>webkit-sed</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>542376</commentid>
    <comment_count>0</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-01-25 09:48:07 -0800</bug_when>
    <thetext>The bounding rectangles for zero length paths are not right when shown in LayoutTest results. They may or may not be correct at runtime when used for clipping etc. THis needs further investigation.

Not that inconsistency in the reported bounds was present before the fix for 71820 was put in. This is an area that has been odd for quite some time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>542396</commentid>
    <comment_count>1</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2012-01-25 10:05:05 -0800</bug_when>
    <thetext>Skipped tests on Qt: http://trac.webkit.org/changeset/105889
We should unskip them after fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>543343</commentid>
    <comment_count>2</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-01-26 11:55:02 -0800</bug_when>
    <thetext>The problematic test cases are:
LayoutTests/svg/W3C-SVG-1.1-SE/painting-control-04-f.svg
LayoutTests/svg/custom/zero-path-square-cap-rendering.svg
LayoutTests/svg/stroke/zero-length-arc-linecaps-rendering.svg

and probably

LayoutTests/svg/stroke/*

The problem appears to be due to the interaction between platform/gaphics/qt/PathQt.cpp and RenderSVGShape::updateCachedBoundaries(). The underlying behavior of Qt&apos;s QPainterPath implementation may be to blame. Regardless, this issue seems to be Qt only. Not Chromium or Mac.

Working through RenderSVGShape::updateCachedBoundaries() for the second path element, looking at how it computes m_repaintBoundingBox, which is the thing reported by DumpRenderTree:
- The paths in question should not be empty, and according to comments in PathQt.cpp, they will not be. The comment may be incorrect.
- The path should be detected as being of zero subpath length, triggering the uniting of the (initially zero sized bound) with the zero length stroke rectangle bound. Check that the offending paths actually have been detected as zero length.
- Then marker bounds are added, which cannot make the path smaller, so probably is not the issue.
- Then the repaint rect is set, which should be the zero-length-stroke bound size.
- The only other way it could go wrong is if the resources intersection decides it has a zero sized clip or something.

Hope that helps whomever comes to look at this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>738994</commentid>
    <comment_count>3</comment_count>
    <who name="Ádám Kallai">kadam</who>
    <bug_when>2012-10-10 08:51:53 -0700</bug_when>
    <thetext>Is Anybody working this bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>975389</commentid>
    <comment_count>4</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2014-02-03 03:19:49 -0800</bug_when>
    <thetext>=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>