NS_IMETHODIMP 
nsHTMLEditor::ShowResizers(nsIDOMElement *aResizedElement)
{
  nsresult res = ShowResizersInner(aResizedElement);
  if (NS_FAILED(res))
    HideResizers();
  return res;
}
Exemplo n.º 2
0
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;
}