Bug 1120316 - Part 2: Batch changes for select all so we don't get selection change with no reason. r=roc

This commit is contained in:
Morris Tseng 2015-02-04 21:35:00 +01:00
parent c2267e92ee
commit 280d7cfa13

View File

@ -1584,6 +1584,7 @@ nsPlaintextEditor::SelectEntireDocument(Selection* aSelection)
return aSelection->Collapse(rootElement, 0);
}
SelectionBatcher selectionBatcher(aSelection);
nsresult rv = nsEditor::SelectEntireDocument(aSelection);
NS_ENSURE_SUCCESS(rv, rv);