Closed Bug 619996 Opened 14 years ago Closed 13 years ago

Remove nsISelectElement

Categories

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

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla5

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

(Blocks 1 open bug)

Details

Attachments

(7 files)

As noted in bug 604807, we could remove it. Patches coming up.
No longer blocks: 604807
Attachment #507566 - Flags: review?(bzbarsky)
Attachment #507567 - Flags: review?(bzbarsky)
Comment on attachment 507560 [details] [diff] [review]
Part a: Remove unnecessary inclusions of and references to nsISelectElement.h

r=me
Attachment #507560 - Flags: review?(bzbarsky) → review+
Comment on attachment 507561 [details] [diff] [review]
Part b: make nsHTMLOptionElement::GetSelect return nsHTMLSelectElement.

>+    if (aContent &&
>+        aContent->NodeInfo()->Equals(nsGkAtoms::option, kNameSpaceID_XHTML))

As long as you're here:

  if (aContent && aContent->IsHTML(nsGkAtoms::option))

>+++ b/content/html/content/src/nsHTMLSelectElement.h

>+    if (!aContent ||
>+        !aContent->NodeInfo()->Equals(nsGkAtoms::select, kNameSpaceID_XHTML))
>+      return NULL;

Again, IsHTML().  And let's stick with nsnull until the mass-change.  ;)

r=me with the nits picked.
Attachment #507561 - Flags: review?(bzbarsky) → review+
Comment on attachment 507562 [details] [diff] [review]
Part c: stop using QueryInterface on nsHTMLOptionElement::GetSelect's return value.

r=me
Attachment #507562 - Flags: review?(bzbarsky) → review+
Comment on attachment 507563 [details] [diff] [review]
Part d: use nsHTMLSelectElement::FromContent in nsListControlFrame.

r=me, if you check that stuff like SetOptionsSelectedByIndex can't trigger script (e.g. via onchange events).  If it can, you need to hold strong refs in soe places here...
Attachment #507563 - Flags: review?(bzbarsky) → review+
Comment on attachment 507564 [details] [diff] [review]
Part e: make nsSafeOptionListMutation::mSelect a nsHTMLSelectElement.

r=me
Attachment #507564 - Flags: review?(bzbarsky) → review+
Comment on attachment 507566 [details] [diff] [review]
Part f: kill layout/forms/resources.

r=me; can't believe this was still around.
Attachment #507566 - Flags: review?(bzbarsky) → review+
Comment on attachment 507567 [details] [diff] [review]
Part g: Kill nsISelectElement.

r=me
Attachment #507567 - Flags: review?(bzbarsky) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: