Closed
Bug 289322
Opened 20 years ago
Closed 20 years ago
[FIXr]Is the BF_PARSER_CREATING check in nsHTMLInputElement::BindToTree needed?
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla1.8beta2
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
3.10 KB,
patch
|
sicking
:
review+
jst
:
superreview+
chofmann
:
approval1.8b2+
|
Details | Diff | Splinter Review |
I think the check can be removed... see XXX comment in the code.
![]() |
Assignee | |
Comment 1•20 years ago
|
||
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)
![]() |
Assignee | |
Updated•20 years ago
|
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 3•20 years ago
|
||
Comment on attachment 179885 [details] [diff] [review]
Yep, it can go away
sr=jst
Attachment #179885 -
Flags: superreview?(jst) → superreview+
![]() |
Assignee | |
Comment 4•20 years ago
|
||
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?
![]() |
Assignee | |
Updated•20 years ago
|
Summary: [FIX]Is the BF_PARSER_CREATING check in nsHTMLInputElement::BindToTree needed? → [FIXr]Is the BF_PARSER_CREATING check in nsHTMLInputElement::BindToTree needed?
Comment 5•20 years ago
|
||
Comment on attachment 179885 [details] [diff] [review]
Yep, it can go away
a=chofmann
Attachment #179885 -
Flags: approval1.8b2? → approval1.8b2+
![]() |
Assignee | |
Comment 6•20 years ago
|
||
Fixed.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Target Milestone: mozilla1.8beta3 → mozilla1.8beta2
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•