Bug 778428 - Refcount arrays of nodes in editor/; r=ehsan

This commit is contained in:
Aryeh Gregor 2012-08-01 11:17:51 +03:00
parent 6e5854f625
commit fbd5b103d1
3 changed files with 4 additions and 4 deletions

View File

@ -7625,7 +7625,7 @@ nsHTMLEditRules::RemoveEmptyNodes()
NS_ENSURE_SUCCESS(res, res);
nsCOMArray<nsINode> arrayOfEmptyNodes, arrayOfEmptyCites;
nsTArray<nsINode*> skipList;
nsTArray<nsCOMPtr<nsINode> > skipList;
// check for empty nodes
while (!iter->IsDone()) {

View File

@ -3769,7 +3769,7 @@ nsHTMLEditor::CollapseAdjacentTextNodes(nsIDOMRange *aInRange)
{
NS_ENSURE_TRUE(aInRange, NS_ERROR_NULL_POINTER);
nsAutoTxnsConserveSelection dontSpazMySelection(this);
nsTArray<nsIDOMNode*> textNodes;
nsTArray<nsCOMPtr<nsIDOMNode> > textNodes;
// we can't actually do anything during iteration, so store the text nodes in an array
// don't bother ref counting them because we know we can hold them for the
// lifetime of this method

View File

@ -1306,7 +1306,7 @@ nsHTMLEditor::DeleteRow(nsIDOMElement *aTable, PRInt32 aRowIndex)
// The list of cells we will change rowspan in
// and the new rowspan values for each
nsTArray<nsIDOMElement*> spanCellList;
nsTArray<nsCOMPtr<nsIDOMElement> > spanCellList;
nsTArray<PRInt32> newSpanList;
// Scan through cells in row to do rowspan adjustments
@ -2144,7 +2144,7 @@ nsHTMLEditor::JoinTableCells(bool aMergeNonContiguousContents)
}
// The list of cells we will delete after joining
nsTArray<nsIDOMElement*> deleteList;
nsTArray<nsCOMPtr<nsIDOMElement> > deleteList;
// 2nd pass: Do the joining and merging
for (rowIndex = 0; rowIndex < rowCount; rowIndex++)