NS_IMPL_HTML_CONTENT_QUERY_INTERFACE(aIID, aInstancePtr, this) if (aIID.Equals(kIDOMHTMLBodyElementIID)) { nsIDOMHTMLBodyElement* tmp = this; *aInstancePtr = (void*) tmp;
NS_PRECONDITION(nsnull != aInstancePtrResult, "null pointer"); if (nsnull == aInstancePtrResult) { return NS_ERROR_NULL_POINTER; }  if (aIID.Equals(kIStyleRuleIID)) { *aInstancePtrResult = (void*) ((nsIStyleRule*)this); NS_ADDREF_THIS(); return NS_OK; } if (aIID.Equals(kISupportsIID)) { *aInstancePtrResult = (void*) ((nsISupports*)this);
nsHTMLBodyElement::QueryInterface(REFNSIID aIID, void** aInstancePtr){  NS_IMPL_HTML_CONTENT_QUERY_INTERFACE(aIID, aInstancePtr, this)  if (aIID.Equals(kIDOMHTMLBodyElementIID)) {    nsIDOMHTMLBodyElement* tmp = this;    *aInstancePtr = (void*) tmp;    NS_ADDREF_THIS();    return NS_OK;  }  return NS_NOINTERFACE;}