[Webkit-unassigned] [Bug 15236] RenderTheme forces borders for MenulistButtonAppearance

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 27 16:41:33 PDT 2007


------- Comment #4 from aroben at apple.com  2007-09-27 16:41 PDT -------
(In reply to comment #3)
> However, adjustMenuListButtonStyle seems insufficient.  The only way to prevent
> it from drawing the rounded border is to reset the border entirely, which is
> undesirable when the user explicitly sets a border.

Perhaps we need to change html4.css, then.

> I think the real fix involves fixing RenderObject::paintBorder so that it
> doesn't attempt to draw rounded corners in all cases.  (It only really makes
> sense on <select> controls that are styled the Mac way).

RenderObject::paintBorder does not always try to paint rounded borders:

    if (style->hasBorderRadius() &&
        static_cast<unsigned>(w) >= static_cast<unsigned>(topLeft.width()) +
static_cast<unsigned>(topRight.width()) &&
        static_cast<unsigned>(w) >= static_cast<unsigned>(bottomLeft.width()) +
static_cast<unsigned>(bottomRight.width()) &&
        static_cast<unsigned>(h) >= static_cast<unsigned>(topLeft.height()) +
static_cast<unsigned>(bottomLeft.height()) &&
        static_cast<unsigned>(h) >= static_cast<unsigned>(topRight.height()) +
        renderRadii = true;

Configure bugmail: http://bugs.webkit.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