mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 778428 - Refcount arrays of nodes in editor/; r=ehsan
This commit is contained in:
parent
6e5854f625
commit
fbd5b103d1
@ -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()) {
|
||||
|
@ -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
|
||||
|
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user