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)

x86
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla6

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(5 files, 1 obsolete file)

Now that we have infallible new, the table code can no longer fail. Patches coming up to remove the gunk.
Attachment #525996 - Attachment is obsolete: true
Whiteboard: [need review]
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+
Attachment #525997 - Flags: review?(peterv) → review+
Attachment #525998 - Flags: review?(peterv) → review+
> 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.
Whiteboard: [need review] → [need landing]
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [need landing]
Target Milestone: --- → mozilla6
(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 :-(.
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: