<?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>13161</bug_id>
          
          <creation_ts>2007-03-22 13:39:51 -0700</creation_ts>
          <short_desc>Hit testing fails for complex polygons</short_desc>
          <delta_ts>2007-12-27 01:54:29 -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>419.x</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.carto.net/neumann/webkitsvgbugs/path_hit_testing.svg</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NeedsReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>11931</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Neumann">a.neumann</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17682</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Neumann">a.neumann</who>
    <bug_when>2007-03-22 13:39:51 -0700</bug_when>
    <thetext>This bug might be related to http://bugs.webkit.org/show_bug.cgi?id=11931

If you mouse over the polygons in the map the corresponding color in the legend should hightlight (with a black stroke). For more complex polygons Webkit often fails. I haven&apos;t figured out the reason yet. Other implementations (Batik, Opera, FF, etc.) seem to work fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10570</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-05-10 04:47:46 -0700</bug_when>
    <thetext>We really need a more reduced test case than that one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10571</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Neumann">a.neumann</who>
    <bug_when>2007-05-10 04:51:13 -0700</bug_when>
    <thetext>to me it seems like all the polygons that have a hole fail in hit testing, while other polygons work. I will try to come up with a reduced testcase.

Andreas</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10584</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-05-10 06:01:09 -0700</bug_when>
    <thetext>I&apos;m pretty sure this is fixed by the fix for bug 11931</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10585</commentid>
    <comment_count>4</comment_count>
    <who name="Andreas Neumann">a.neumann</who>
    <bug_when>2007-05-10 06:10:12 -0700</bug_when>
    <thetext>yes, it might be fixed by bug 11931 (haven&apos;t checked), will check when it is landed and available in the nightlies

Note that the paths generated in my mapping examples are usually not explicitly closed (with a &quot;z&quot; or &quot;Z&quot; path command) because the spatial database (Postgis) I use outputs the path in a way that it &quot;closes&quot; the path by repeating the initial &quot;M&quot; coordinate. In case of relative paths, they might not match exactly.

So, lets have a look at again, after the fix for 11931 is available.

Thanks,
Andraes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65368</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-27 01:54:29 -0800</bug_when>
    <thetext>Please confirm this is fixed for you in the latest nightlies or under leopard.  bug 11931 was fixed, I reopend it to track removing the workaround under Leopard.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>