chenbo007 / svg-edit

Automatically exported from code.google.com/p/svg-edit
0 stars 0 forks source link

Webkit browsers mess up drawn paths when selected #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Select the Pencil Tool
2. Draw a curly path with it
3. Using the Select tool, click on the path

What is the expected output? What do you see instead?
Expect the path to be selected in a bounding box.  Instead the boudning box
is sized properly, but the path itself becomes corrupted (a straight line
that goes off the canvas).

Original issue reported on code.google.com by codedr...@gmail.com on 17 Jun 2009 at 5:19

GoogleCodeExporter commented 9 years ago

Original comment by codedr...@gmail.com on 17 Jun 2009 at 5:19

GoogleCodeExporter commented 9 years ago
This ONLY happens upon the mouse-up when selecting the path.

Original comment by codedr...@gmail.com on 17 Jun 2009 at 5:39

GoogleCodeExporter commented 9 years ago
The issue is because WebKit browsers normalize path segments.  They turn 
relative
line segments (type=5) into absolute line segments (type=4).  This means I'll 
need to
work around this (and create a minimal test case and open a bug against WebKit).

Original comment by codedr...@gmail.com on 17 Jun 2009 at 5:50

GoogleCodeExporter commented 9 years ago
Fixed in r141.  De-normalize path segments after Webkit has normalized them.

Original comment by codedr...@gmail.com on 17 Jun 2009 at 6:06

GoogleCodeExporter commented 9 years ago
WebKit bug opened at https://bugs.webkit.org/show_bug.cgi?id=26487

Original comment by codedr...@gmail.com on 17 Jun 2009 at 6:21