[Webkit-unassigned] [Bug 41301] Drawing border-radius from path sometimes fails to round outer border in the double style when it should

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 24 19:01:53 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=41301





--- Comment #2 from Jerry Seeger <vikingjs at mac.com>  2010-11-24 19:01:53 PST ---
Created an attachment (id=74826)
 --> (https://bugs.webkit.org/attachment.cgi?id=74826&action=review)
Page demonstrating several border issues, along with proposed fix.

This is a link to a page that compares the current browser's border-radius implementation to a separate implementation I have done in javaScript. The javascript implementation has several advantages over the current WebKit implementation:

1) Dots are round, and taper with the changing width of a corner
2) Many, many cases where gaps in corners don't occur (border width > radius is killer).
3) No need for modification to Core Graphics (can close bugs 41309-41313).
4) This also fixes open bugs 41302 and 41304

Manipulating the sliders on that page will also reveal many other issues with the current WebKit build, for which I don't see bug reports.

Unless someone strongly objects, I would like to submit a patch for WebKit based on this code. I created it as an exercise for myself but I've kept in mind the possibility porting it. (Currently the code uses SVG paths, but it will be simple to replace those with WebKit Paths.) It is a bit spendy on math right now, but is actually quite efficient when it comes to the drawing.

Although I realize that there has been a lot of work done on another approach to the problems, I think ultimately this ground-up rebuild will provide much more maintainable and adaptable code.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list