Call the new Init() method on nsIEditorController for bug 18395. r=pinkerton

This commit is contained in:
sfraser%netscape.com 2000-02-16 01:41:17 +00:00
Родитель 6ff0e90ae4
Коммит 868e0ee9df
4 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

@ -1219,6 +1219,11 @@ nsHTMLInputElement::GetControllers(nsIControllers** aResult)
getter_AddRefs(controller)), getter_AddRefs(controller)),
NS_ERROR_FAILURE); NS_ERROR_FAILURE);
if (!controller) { return NS_ERROR_NULL_POINTER; } if (!controller) { return NS_ERROR_NULL_POINTER; }
nsresult rv;
nsCOMPtr<nsIEditorController> editorController = do_QueryInterface(controller, &rv);
if (NS_FAILED(rv)) return rv;
rv = editorController->Init();
if (NS_FAILED(rv)) return rv;
mControllers->AppendController(controller); mControllers->AppendController(controller);
} }
} }

Просмотреть файл

@ -617,6 +617,12 @@ nsHTMLTextAreaElement::GetControllers(nsIControllers** aResult)
NS_ERROR_FAILURE); NS_ERROR_FAILURE);
if (!controller) { return NS_ERROR_NULL_POINTER; } if (!controller) { return NS_ERROR_NULL_POINTER; }
nsresult rv;
nsCOMPtr<nsIEditorController> editorController = do_QueryInterface(controller, &rv);
if (NS_FAILED(rv)) return rv;
rv = editorController->Init();
if (NS_FAILED(rv)) return rv;
mControllers->AppendController(controller); mControllers->AppendController(controller);
} }

Просмотреть файл

@ -1219,6 +1219,11 @@ nsHTMLInputElement::GetControllers(nsIControllers** aResult)
getter_AddRefs(controller)), getter_AddRefs(controller)),
NS_ERROR_FAILURE); NS_ERROR_FAILURE);
if (!controller) { return NS_ERROR_NULL_POINTER; } if (!controller) { return NS_ERROR_NULL_POINTER; }
nsresult rv;
nsCOMPtr<nsIEditorController> editorController = do_QueryInterface(controller, &rv);
if (NS_FAILED(rv)) return rv;
rv = editorController->Init();
if (NS_FAILED(rv)) return rv;
mControllers->AppendController(controller); mControllers->AppendController(controller);
} }
} }

Просмотреть файл

@ -617,6 +617,12 @@ nsHTMLTextAreaElement::GetControllers(nsIControllers** aResult)
NS_ERROR_FAILURE); NS_ERROR_FAILURE);
if (!controller) { return NS_ERROR_NULL_POINTER; } if (!controller) { return NS_ERROR_NULL_POINTER; }
nsresult rv;
nsCOMPtr<nsIEditorController> editorController = do_QueryInterface(controller, &rv);
if (NS_FAILED(rv)) return rv;
rv = editorController->Init();
if (NS_FAILED(rv)) return rv;
mControllers->AppendController(controller); mControllers->AppendController(controller);
} }