Closed Bug 756757 Opened 13 years ago Closed 13 years ago

Use nsINode in nsHTMLEditor::MergeCells

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: Ms2ger, Assigned: Ms2ger)

Details

Attachments

(1 file)

Attached patch Patch v1Splinter Review
No description provided.
Attachment #625390 - Flags: review?(ehsan)
Comment on attachment 625390 [details] [diff] [review] Patch v1 Review of attachment 625390 [details] [diff] [review]: ----------------------------------------------------------------- ::: editor/libeditor/html/nsTableEditor.cpp @@ +2380,5 @@ > } > > // Move the contents > + while (cellToMerge->HasChildren()) { > + nsIDOMNode* cellChild = cellToMerge->GetLastChild()->AsDOMNode(); Hmm, this is a bit scary, since you're grabbing cellChild as a raw pointer, calling DeleteNode which _could_ destroy the object, and then you're passing it to InsertNode. Please use an nsCOMPtr here.
Attachment #625390 - Flags: review?(ehsan) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: