Bug 64537

Summary: REGRESSION (r90809): Setting a checkbox's checked property, doesn't render as checked until app window loses focus
Product: WebKit Reporter: Joel <joel>
Component: Layout and RenderingAssignee: Kent Tamura <tkent>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, darin, dominicc, huiqing.zeng, tkent, webkit.review.bot
Priority: P1 Keywords: InRadar, Regression
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.6   
Attachments:
Description Flags
Click a row, to see the issue
none
Patch
none
Patch 2 none

Description Joel 2011-07-14 10:08:00 PDT
Created attachment 100822 [details]
Click a row, to see the issue

When you set a checkbox's checked property, webkit nightly isn't rendering a checked view of the icon until you remove focus from the entire application window. It is actually checked though, so it's just a visual bug.

Works everywhere else, chrome, firefox, safari
Comment 1 Alexey Proskuryakov 2011-07-14 15:23:52 PDT
<rdar://problem/9778592>
Comment 2 Kent Tamura 2011-07-14 19:18:41 PDT
Created attachment 100915 [details]
Patch
Comment 3 Dominic Cooney 2011-07-14 19:26:51 PDT
Comment on attachment 100915 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=100915&action=review

> LayoutTests/ChangeLog:3
> +        REGRESSION (r90809): Setting a checkbox's checked property, doesn't render as checked until app window looses focus

loses

> Source/WebCore/ChangeLog:3
> +        REGRESSION (r90809): Setting a checkbox's checked property, doesn't render as checked until app window looses focus

loses
Comment 4 Kent Tamura 2011-07-14 19:30:45 PDT
Created attachment 100916 [details]
Patch 2

Fix typo
Comment 5 Darin Adler 2011-07-14 20:25:33 PDT
Comment on attachment 100916 [details]
Patch 2

I don’t understand why it is correct to only call updateCheckedRadioButtons for radio buttons. The work in there does not seem to be radio-button-specific despite the function’s name. If that is correct, then the function should be moved into RadioInputType out of HTMLInputElement.
Comment 6 Kent Tamura 2011-07-14 20:38:35 PDT
Thank you for reviewing.

(In reply to comment #5)
> (From update of attachment 100916 [details])
> I don’t understand why it is correct to only call updateCheckedRadioButtons for radio buttons. The work in there does not seem to be radio-button-specific despite the function’s name. If that is correct, then the function should be moved into RadioInputType out of HTMLInputElement.

I think updateCheckedRadioButton() is really specific to radio buttons, and we should move it to RadioInputType.
Comment 7 WebKit Review Bot 2011-07-14 21:31:42 PDT
Comment on attachment 100916 [details]
Patch 2

Clearing flags on attachment: 100916

Committed r91047: <http://trac.webkit.org/changeset/91047>
Comment 8 WebKit Review Bot 2011-07-14 21:31:47 PDT
All reviewed patches have been landed.  Closing bug.