Closed Bug 289322 Opened 19 years ago Closed 19 years ago

[FIXr]Is the BF_PARSER_CREATING check in nsHTMLInputElement::BindToTree needed?

Categories

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

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.8beta2

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

I think the check can be removed... see XXX comment in the code.
Depends on: 286000
We had this check because we could get SetDocument() called before all the
attrs were in place, which would lead to unnecessary thrashing during parsing. 
Since we now always BindToTree after all attrs have been added, this is no
longer an issue.  We can move this code out of DoneCreatingElement and just
call AddedToRadioGroup from BindToTree.  Note that it's OK that we pass PR_TRUE
as aNotify there, since AddedToRadioGroup deals with that.
Attachment #179885 - Flags: superreview?(jst)
Attachment #179885 - Flags: review?(bugmail)
Priority: -- → P2
Summary: Is the BF_PARSER_CREATING check in nsHTMLInputElement::BindToTree needed? → [FIX]Is the BF_PARSER_CREATING check in nsHTMLInputElement::BindToTree needed?
Target Milestone: --- → mozilla1.8beta3
Comment on attachment 179885 [details] [diff] [review]
Yep, it can go away

Wow, this stuff is complex. I suspect that a lot more code can be removed, but
it'll require more investigation and can be done elsewhere.
Attachment #179885 - Flags: review?(bugmail) → review+
Comment on attachment 179885 [details] [diff] [review]
Yep, it can go away

sr=jst
Attachment #179885 - Flags: superreview?(jst) → superreview+
Comment on attachment 179885 [details] [diff] [review]
Yep, it can go away

This removes some unneeded code.  Should be pretty safe...
Attachment #179885 - Flags: approval1.8b2?
Summary: [FIX]Is the BF_PARSER_CREATING check in nsHTMLInputElement::BindToTree needed? → [FIXr]Is the BF_PARSER_CREATING check in nsHTMLInputElement::BindToTree needed?
Comment on attachment 179885 [details] [diff] [review]
Yep, it can go away

a=chofmann
Attachment #179885 - Flags: approval1.8b2? → approval1.8b2+
Fixed.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: mozilla1.8beta3 → mozilla1.8beta2
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: