Closed Bug 744507 Opened 13 years ago Closed 13 years ago

Cleanup GetPriorHTMLSibling/GetNextHTMLSibling

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: Ms2ger, Assigned: Ms2ger)

Details

Attachments

(2 files)

Note that none of the callers of GetPriorHTMLSibling(nsIDOMNode*, PRInt32, nsCOMPtr<nsIDOMNode>*) looks at the nsresult it returns, so it doesn't matter that we return NS_OK instead of NS_ERROR_NULL_POINTER when |node| is null. Also note that GetChildAt will return null for out-of-bounds access, so the extra check (only in GetPriorHTMLSibling) isn't necessary.
Attachment #614087 - Flags: review?(ehsan)
Attachment #614088 - Flags: review?(ehsan)
Attachment #614087 - Flags: review?(ehsan) → review+
Comment on attachment 614088 [details] [diff] [review] Part b: Add nsINode versions Review of attachment 614088 [details] [diff] [review]: ----------------------------------------------------------------- Beautiful!
Attachment #614088 - Flags: review?(ehsan) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: