[Webkit-unassigned] [Bug 6755] CSS3: Borders rounded with border-radius don't draw the roundings

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Thu Mar 23 00:28:36 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=6755


seattlesparks at mac.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |seattlesparks at mac.com




------- Comment #2 from seattlesparks at mac.com  2006-03-23 00:28 PDT -------
I'm relatively new to WebCore/WebKit, but this bug has been annoying me so I
started to poke at the source.  It seems to me that the problem is both a
fairly simple one, and a fairly hairy one.  

The simple part is that border-radius is handled by drawing onto a surface
clipped to a rounded rectangle; thus the corners of the still-rectangular
border draw outside the clip, and are omitted.  Obviously, this (and probably
border-image, though I've not poked extensively into that) needs to draw the
arced bits as well.  Simple enough...

The hairy part is that the way drawBorder is laid out right now, either all the
different logic for drawing styles needs to be duplicated in a drawBorderArcs,
or more state information (such as the border radius stuff) needs to be passed
down into drawBorder and it needs to draw the arcs.  Neither seems ideal,
though duplicating the logic in a drawBorderArcs strikes me as more annoying,
but probably less intrusive on the codebase than trying to change the calling
format of drawBorder.

I'm willing to look at tackling that, though I'd kind of not mind a
sanity-check from someone more familiar with WebCore, before I go off trying to
duplicate the Giant Border-Style Switch Statement of Doom or anything. :)


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list