Bug 1489790 - Part 4: Remove the XPCOM component registration for NS_EDITINGCOMMANDTABLE_CID; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5359
This commit is contained in:
@@ -213,6 +213,22 @@ nsControllerCommandTable::CreateEditorCommandTable()
|
||||
return commandTable.forget();
|
||||
}
|
||||
|
||||
// static
|
||||
already_AddRefed<nsIControllerCommandTable>
|
||||
nsControllerCommandTable::CreateEditingCommandTable()
|
||||
{
|
||||
nsCOMPtr<nsIControllerCommandTable> commandTable =
|
||||
new nsControllerCommandTable();
|
||||
|
||||
nsresult rv = EditorController::RegisterEditingCommands(commandTable);
|
||||
if (NS_FAILED(rv)) return nullptr;
|
||||
|
||||
// we don't know here whether we're being created as an instance,
|
||||
// or a service, so we can't become immutable
|
||||
|
||||
return commandTable.forget();
|
||||
}
|
||||
|
||||
// static
|
||||
already_AddRefed<nsIControllerCommandTable>
|
||||
nsControllerCommandTable::CreateHTMLEditorCommandTable()
|
||||
|
||||
Reference in New Issue
Block a user