Bug 13161 - Hit testing fails for complex polygons
Summary: Hit testing fails for complex polygons
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 419.x
Hardware: Mac OS X 10.4
: P2 Major
Assignee: Nobody
URL: http://www.carto.net/neumann/webkitsv...
Keywords: NeedsReduction
Depends on: 11931
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-22 13:39 PDT by Andreas Neumann
Modified: 2007-12-27 01:54 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Neumann 2007-03-22 13:39:51 PDT
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't figured out the reason yet. Other implementations (Batik, Opera, FF, etc.) seem to work fine.
Comment 1 Eric Seidel (no email) 2007-05-10 04:47:46 PDT
We really need a more reduced test case than that one.
Comment 2 Andreas Neumann 2007-05-10 04:51:13 PDT
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
Comment 3 Eric Seidel (no email) 2007-05-10 06:01:09 PDT
I'm pretty sure this is fixed by the fix for bug 11931
Comment 4 Andreas Neumann 2007-05-10 06:10:12 PDT
yes, it might be fixed by bug 11931 (haven'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 "z" or "Z" path command) because the spatial database (Postgis) I use outputs the path in a way that it "closes" the path by repeating the initial "M" 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
Comment 5 Eric Seidel (no email) 2007-12-27 01:54:29 PST
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.