Closed
Bug 237213
Opened 21 years ago
Closed 21 years ago
[FIXr]Replace nodetype check with IsContentOfType in nsContentList
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla1.8alpha1
People
(Reporter: bzbarsky, Assigned: bzbarsky)
Details
Attachments
(1 file, 1 obsolete file)
1.98 KB,
patch
|
Details | Diff | Splinter Review |
The two should be equivalent, and the latter is faster and less code.
![]() |
Assignee | |
Comment 1•21 years ago
|
||
![]() |
Assignee | |
Updated•21 years ago
|
Attachment #143681 -
Flags: superreview?(jst)
Attachment #143681 -
Flags: review?(jst)
Comment 2•21 years ago
|
||
Comment on attachment 143681 [details] [diff] [review]
Patch
+ if (!aContent->IsContentOfType(nsIContent::eELEMENT)) {
return PR_FALSE;
+ }
+ nsINodeInfo *ni = aContent->GetNodeInfo();
+ if (!ni) {
+ NS_ERROR("Element without nodeinfo!");
return PR_FALSE;
This is not needed any more then, all elements have nodeinfo, if they don't,
they're broke and should be fixed.
r+sr=jst with that unnecessary check removed.
Attachment #143681 -
Flags: superreview?(jst)
Attachment #143681 -
Flags: superreview+
Attachment #143681 -
Flags: review?(jst)
Attachment #143681 -
Flags: review+
![]() |
Assignee | |
Updated•21 years ago
|
Priority: -- → P2
Summary: Replace nodetype check with IsContentOfType in nsContentList → [FIXr]Replace nodetype check with IsContentOfType in nsContentList
Target Milestone: --- → mozilla1.8alpha
![]() |
Assignee | |
Comment 3•21 years ago
|
||
Attachment #143681 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 4•21 years ago
|
||
Fix checked in for 1.8a.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•