if (aIID.Equals(kIStyleSheetIID)) {
if (aIID.Equals(NS_GET_IID(nsIStyleSheet))) {
nsresult HTMLCSSStyleSheetImpl::QueryInterface(const nsIID& aIID,                                               void** aInstancePtrResult){  NS_PRECONDITION(nsnull != aInstancePtrResult, "null pointer");  if (nsnull == aInstancePtrResult) {    return NS_ERROR_NULL_POINTER;  }  static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);  if (aIID.Equals(kIHTMLCSSStyleSheetIID)) {    *aInstancePtrResult = (void*) ((nsIHTMLCSSStyleSheet*)this);    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(kIStyleSheetIID)) {    *aInstancePtrResult = (void*) ((nsIStyleSheet*)this);    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(NS_GET_IID(nsIStyleRuleProcessor))) {    *aInstancePtrResult = (void*) ((nsIStyleRuleProcessor*)this);    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(kISupportsIID)) {    *aInstancePtrResult = (void*) ((nsISupports*)(nsIStyleSheet*)this);    NS_ADDREF_THIS();    return NS_OK;  }  return NS_NOINTERFACE;}