Closed
Bug 649997
Opened 15 years ago
Closed 15 years ago
Remove use of no-longer-needed out param nsresult on nsIHTMLCollection
Categories
(Core :: DOM: Core & HTML, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla6
People
(Reporter: bzbarsky, Assigned: bzbarsky)
Details
Attachments
(5 files, 1 obsolete file)
|
8.27 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
|
7.38 KB,
patch
|
Details | Diff | Splinter Review | |
|
11.09 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
|
9.97 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
|
6.38 KB,
patch
|
Details | Diff | Splinter Review |
Now that we have infallible new, the table code can no longer fail. Patches coming up to remove the gunk.
| Assignee | ||
Comment 1•15 years ago
|
||
Attachment #525993 -
Flags: review?(peterv)
| Assignee | ||
Comment 2•15 years ago
|
||
| Assignee | ||
Comment 3•15 years ago
|
||
| Assignee | ||
Comment 4•15 years ago
|
||
Attachment #525997 -
Flags: review?(peterv)
| Assignee | ||
Updated•15 years ago
|
Attachment #525996 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•15 years ago
|
||
Attachment #525998 -
Flags: review?(peterv)
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [need review]
Comment 6•15 years ago
|
||
Comment on attachment 525993 [details] [diff] [review]
part 1. Stop touching rv in DO_FOR_EACH_ROWGROUP on table rows collections.
This relies on GetTHead/GetTBodies/GetTFoot never returning an error except OOM. Could we replace GetTHead/GetTFoot with nsHTMLTableElement::GetSection (would need to make it public) and maybe have a nsHTMLTableElement::GetTBodies that returns a nsContentList*? nsHTMLTableElement::GetSection should also return a nsIContent*, but I disgress :-/.
Attachment #525993 -
Flags: review?(peterv) → review+
Updated•15 years ago
|
Attachment #525997 -
Flags: review?(peterv) → review+
Updated•15 years ago
|
Attachment #525998 -
Flags: review?(peterv) → review+
| Assignee | ||
Comment 7•15 years ago
|
||
> nsHTMLTableElement::GetSection should also return a nsIContent*
That would involve QIs at all the callsites. I don't think that really helps anything.
I added public inline GetTHead and GetTFoot methods that take no args and don't fail and that call GetSection() appropriately. I then made the existing GetTHead and GetTFoot use those, and made DO_FOR_EACH_ROWGROUP do likewise.
I added a TBodies() function that returns nsContentList and used it in DO_FOR_EACH_ROWGROUP as well.
| Assignee | ||
Comment 8•15 years ago
|
||
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [need review] → [need landing]
| Assignee | ||
Comment 9•15 years ago
|
||
Pushed:
http://hg.mozilla.org/mozilla-central/rev/05d0635e2840
http://hg.mozilla.org/mozilla-central/rev/55e55b249876
http://hg.mozilla.org/mozilla-central/rev/23b222c43690
then pushed http://hg.mozilla.org/mozilla-central/rev/b1c530bf15f3 to fix an issue ms2ger noticed in patch2.
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [need landing]
Target Milestone: --- → mozilla6
Comment 10•15 years ago
|
||
(In reply to comment #8)
> Interdiff for the part 1 changes
Sweet, thanks!
(In reply to comment #9)
> then pushed http://hg.mozilla.org/mozilla-central/rev/b1c530bf15f3 to fix an
> issue ms2ger noticed in patch2.
Ouch, sorry for missing that :-(.
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•