NS_IMETHODIMP nsHTMLEditor::ShowResizers(nsIDOMElement *aResizedElement) { nsresult res = ShowResizersInner(aResizedElement); if (NS_FAILED(res)) HideResizers(); return res; }
NS_IMETHODIMP HTMLEditor::ShowResizers(nsIDOMElement* aResizedElement) { if (NS_WARN_IF(!aResizedElement)) { return NS_ERROR_NULL_POINTER; } nsCOMPtr<Element> element = do_QueryInterface(aResizedElement); if (NS_WARN_IF(!element)) { return NS_ERROR_FAILURE; } nsresult rv = ShowResizersInner(*element); if (NS_FAILED(rv)) { HideResizers(); } return rv; }