Closed Bug 6775 Opened 25 years ago Closed 25 years ago

Can not change border style for gfx-rendered radio button

Categories

(Core :: XUL, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: kmcclusk, Assigned: kmcclusk)

Details

Gfx rendered radio buttons do not honor CSS border styles. Need to use CSS border rendering code rather than custom gfx-code for rendering borders now that -mox-border-radius allows us to render a circular border. <INPUT checked type=radio style="-moz-border-radius:2px; width:15px; height:15px; border:2px inset; background-color:#cccccc; ">untitled
Status: NEW → ASSIGNED
Target Milestone: M7
Target Milestone: M7 → M8
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Added a new nsIRadioControlFrame.h interface. The interface is used at frame construction to pass in the pseudo style controlling the appearance of the radio button. Modified Makefile.in, makefile.win, and MANIFEST in mozilla/layout/html/forms/public to export the new nsIRadioControlFrame.h file Added nsRadioControlFrame::QueryInterface to return nsIRadioControlFrame interface. Added nsRadioControlFrame::ReResolveStyleContext to resolve the nsHTMLAtoms::radioPseudo style Added nsRadioControlFrame::SetRadioButtonFace to set the psuedo style used to render the radio button. Modifed nsRadioControlFrame::Paint to call border code to render the radio buttons background + foreground. Added nsHTMLAtoms::radioPseudo(:-moz-radio) to control the appearance of gfx-rendered radio buttons. Added :-moz-radio style to ua.css to control the appearance of the radio button. Added new method ConstructRadioControlFrame method to CSSFrameConstructor.cpp to construct the radio button frame and initialize it with a the radioPseudo style.
Status: RESOLVED → VERIFIED
lowlevel fix that appears to have taken effect (because of hover and active classes enabled in bug 6752) marking verified.
You need to log in before you can comment on or make changes to this bug.