mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Bug 772346 - Hold a strong ref to the child node in nsHTMLEditRules::DeleteNonTableElements; r=roc
--HG-- extra : rebase_source : 45e35f3c2ce9513a3e48fb801403ff59c0562412
This commit is contained in:
parent
c530cc45c2
commit
17c9f6bfc7
@ -2816,7 +2816,7 @@ nsHTMLEditRules::DeleteNonTableElements(nsINode* aNode)
|
||||
return mHTMLEditor->DeleteNode(aNode->AsDOMNode());
|
||||
}
|
||||
|
||||
for (nsIContent* child = aNode->GetLastChild();
|
||||
for (nsCOMPtr<nsIContent> child = aNode->GetLastChild();
|
||||
child;
|
||||
child = child->GetPreviousSibling()) {
|
||||
nsresult rv = DeleteNonTableElements(child);
|
||||
|
Loading…
x
Reference in New Issue
Block a user