WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
31788
[Cairo] SVG <line> with y1 == y2 and boht with fractional part don't render
https://bugs.webkit.org/show_bug.cgi?id=31788
Summary
[Cairo] SVG <line> with y1 == y2 and boht with fractional part don't render
Dirk Schulze
Reported
2009-11-22 11:40:29 PST
Created
attachment 43683
[details]
SVG <line> with y1 == y2 If a SVG has a <line> element and y1 is nearly equal to y2, and both have a fractional part, the rendering process stops. Some peaple just see a white screen, others a black screen.
Attachments
SVG <line> with y1 == y2
(107 bytes, image/svg+xml)
2009-11-22 11:40 PST
,
Dirk Schulze
no flags
Details
cairo-trace
(17.46 KB, text/plain)
2009-11-22 11:47 PST
,
Dirk Schulze
no flags
Details
SVG <line> with y1 == y2 and color
(120 bytes, image/svg+xml)
2009-11-23 13:21 PST
,
Dirk Schulze
no flags
Details
cairo_trace for y1 == y2
(10.95 KB, text/plain)
2009-11-23 13:25 PST
,
Dirk Schulze
no flags
Details
cairo_trace for y1 = 10.1 y2 = 12
(10.88 KB, text/plain)
2009-11-23 13:32 PST
,
Dirk Schulze
no flags
Details
SVG with two lines
(178 bytes, image/svg+xml)
2009-11-25 00:39 PST
,
Dirk Schulze
no flags
Details
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Dirk Schulze
Comment 1
2009-11-22 11:47:28 PST
Created
attachment 43684
[details]
cairo-trace The output of cairo-trace.
Dirk Schulze
Comment 2
2009-11-23 13:21:25 PST
Created
attachment 43727
[details]
SVG <line> with y1 == y2 and color forgot stroke color on previous example --> no rendering. This is the example with red stroke color. Problem as dircribed above.
Dirk Schulze
Comment 3
2009-11-23 13:25:56 PST
Created
attachment 43729
[details]
cairo_trace for y1 == y2 cairo_trace for for y1 == y2 ~ 10.1
Dirk Schulze
Comment 4
2009-11-23 13:32:20 PST
Created
attachment 43730
[details]
cairo_trace for y1 = 10.1 y2 = 12 The example of above but with different value for y2. I set y2 to 12. Everything works. Like you can see the relevant lines on the first trace (line 208 and following) adn the second trace (lline 233 and following) look similiar. Only difference is 10.1 to 12 as value for y2. The example of above doesn't work while changing y2 to 12 works.
Benjamin Otte
Comment 5
2009-11-24 00:02:10 PST
The attached testcase works fine for me, both with git master and 1.8.8 of Cairo. What version are you on?
Dirk Schulze
Comment 6
2009-11-24 05:36:57 PST
I was using Cairo 1.8.4 as well as trunk. I also see the red line but the background is black. What happens if you add a second line with: <line x1="10" y1="20.1" x2="470" y2="20.1" stroke="red"/>. Do you see 2 red lines? If not, we might still have the same problem. And the different background-color is maybe caused by different graphic dirvers (I'm using nvidia binarys).
Dirk Schulze
Comment 7
2009-11-25 00:39:06 PST
Created
attachment 43828
[details]
SVG with two lines SVG with two lines
Benjamin Otte
Comment 8
2009-11-25 07:14:21 PST
THis has been fixed in Cairo at
http://cgit.freedesktop.org/cairo/commit/?id=3f0c9afa9760a90065c67927c63770f9bb8abe99
Thanks for the second testcase. Someone with the appropriate powers may close this bug.
Dirk Schulze
Comment 9
2009-11-25 08:47:33 PST
Thanks to Benjamin for fixing the bug in Cairo.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug