Closed Bug 679332 Opened 13 years ago Closed 13 years ago

Kill GET_BOOLBIT/SET_BOOLBIT

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

      No description provided.
Please! :)
Assignee: nobody → Ms2ger
Attached patch Patch v1Splinter Review
Did I hear "Please!"? :)
Attachment #570581 - Flags: review?(mounir)
Depends on: 698275
Flags: in-testsuite-
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+
https://hg.mozilla.org/mozilla-central/rev/4edb27f15750
Status: NEW → RESOLVED
Closed: 13 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.

Attachment

General

Created:
Updated:
Size: