if (aIID.Equals(NS_GET_IID(nsIEditorMailSupport))) { *aInstancePtr = NS_STATIC_CAST(nsIEditorMailSupport*, this); NS_ADDREF_THIS(); return NS_OK; } if (aIID.Equals(NS_GET_IID(nsITableEditor))) { *aInstancePtr = NS_STATIC_CAST(nsITableEditor*, this); NS_ADDREF_THIS(); return NS_OK; } if (aIID.Equals(NS_GET_IID(nsIEditorStyleSheets))) { *aInstancePtr = NS_STATIC_CAST(nsIEditorStyleSheets*, this); NS_ADDREF_THIS(); return NS_OK; } if (aIID.Equals(NS_GET_IID(nsICSSLoaderObserver))) { *aInstancePtr = NS_STATIC_CAST(nsICSSLoaderObserver*, this); NS_ADDREF_THIS(); return NS_OK; }  return nsEditor::QueryInterface(aIID, aInstancePtr);
return nsTextEditor::QueryInterface(aIID, aInstancePtr);
NS_IMETHODIMP nsHTMLEditor::QueryInterface(REFNSIID aIID, void** aInstancePtr){  if (!aInstancePtr)    return NS_ERROR_NULL_POINTER;   *aInstancePtr = nsnull;    if (aIID.Equals(NS_GET_IID(nsIHTMLEditor))) {    *aInstancePtr = NS_STATIC_CAST(nsIHTMLEditor*, this);    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(NS_GET_IID(nsIEditorMailSupport))) {    *aInstancePtr = NS_STATIC_CAST(nsIEditorMailSupport*, this);    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(NS_GET_IID(nsITableEditor))) {    *aInstancePtr = NS_STATIC_CAST(nsITableEditor*, this);    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(NS_GET_IID(nsIEditorStyleSheets))) {    *aInstancePtr = NS_STATIC_CAST(nsIEditorStyleSheets*, this);    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(NS_GET_IID(nsICSSLoaderObserver))) {    *aInstancePtr = NS_STATIC_CAST(nsICSSLoaderObserver*, this);    NS_ADDREF_THIS();    return NS_OK;  }  return nsEditor::QueryInterface(aIID, aInstancePtr);}