Closed
Bug 679332
Opened 15 years ago
Closed 14 years ago
Kill GET_BOOLBIT/SET_BOOLBIT
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: Ms2ger, Assigned: Ms2ger)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file)
|
28.16 KB,
patch
|
mounir
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Comment 1•15 years ago
|
||
Please! :)
| Assignee | ||
Updated•15 years ago
|
Assignee: nobody → Ms2ger
| Assignee | ||
Comment 2•14 years ago
|
||
Did I hear "Please!"? :)
Attachment #570581 -
Flags: review?(mounir)
Comment 3•14 years ago
|
||
Comment on attachment 570581 [details] [diff] [review]
Patch v1
Review of attachment 570581 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
::: content/html/content/src/nsHTMLInputElement.cpp
@@ +700,5 @@
> }
> break;
> case NS_FORM_INPUT_RADIO:
> case NS_FORM_INPUT_CHECKBOX:
> + if (mCheckedChanged) {
You should whether use GetCheckedChanged() or open a follow up to remove this method (and all similar ones).
I would prefer the later ;)
@@ +783,5 @@
>
> //
> // Checked must be set no matter what type of control it is, since
> // GetChecked() must reflect the new value
> + if (aName == nsGkAtoms::checked && !mCheckedChanged) {
ditto
@@ +1427,5 @@
> nsHTMLInputElement::DoSetCheckedChanged(bool aCheckedChanged,
> bool aNotify)
> {
> if (mType == NS_FORM_INPUT_RADIO) {
> + if (mCheckedChanged != aCheckedChanged) {
ditto
@@ +3163,5 @@
>
> nsEventStates state = nsGenericHTMLFormElement::IntrinsicState();
> if (mType == NS_FORM_INPUT_CHECKBOX || mType == NS_FORM_INPUT_RADIO) {
> // Check current checked state (:checked)
> + if (mChecked) {
ditto (with GetChecked() instead of GetCheckedChanged())
@@ +3320,5 @@
> //
> // For integrity purposes, we have to ensure that "checkedChanged" is
> // the same for this new element as for all the others in the group
> //
> + bool checkedChanged = mCheckedChanged;
ditto
::: content/html/content/src/nsHTMLInputElement.h
@@ +597,5 @@
> + /**
> + * The type of this input (<input type=...>) as an integer.
> + * @see nsIFormControl.h (specifically NS_FORM_INPUT_*)
> + */
> + PRUint8 mType;
Would it make sense to add " : 8" here?
Attachment #570581 -
Flags: review?(mounir) → review+
| Assignee | ||
Comment 4•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Target Milestone: --- → mozilla11
You need to log in
before you can comment on or make changes to this bug.
Description
•