Kill GET_BOOLBIT/SET_BOOLBIT

RESOLVED FIXED in mozilla11

Status

()

Core
DOM: Core & HTML
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: Ms2ger, Assigned: Ms2ger)

Tracking

Trunk
mozilla11
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [qa-])

Attachments

(1 attachment)

Comment hidden (empty)
Please! :)
(Assignee)

Updated

6 years ago
Assignee: nobody → Ms2ger
(Assignee)

Comment 2

6 years ago
Created attachment 570581 [details] [diff] [review]
Patch v1

Did I hear "Please!"? :)
Attachment #570581 - Flags: review?(mounir)
(Assignee)

Updated

6 years ago
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+
(Assignee)

Comment 4

6 years ago
https://hg.mozilla.org/mozilla-central/rev/4edb27f15750
Status: NEW → RESOLVED
Last Resolved: 6 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.