nsGenericHTMLElementTearoff::QueryInterface(REFNSIID aIID, void** aInstancePtr)
NS_INTERFACE_MAP_BEGIN(nsGenericHTMLElementTearoff) NS_INTERFACE_MAP_ENTRY(nsIDOMNSHTMLElement) NS_INTERFACE_MAP_ENTRY(nsIDOMElementCSSInlineStyle) NS_INTERFACE_MAP_END_AGGREGATED(mElement)   static nsICSSOMFactory* gCSSOMFactory = nsnull; static NS_DEFINE_CID(kCSSOMFactoryCID, NS_CSSOMFACTORY_CID);  nsGenericHTMLElement::nsGenericHTMLElement()
nsGenericHTMLElementTearoff::QueryInterface(REFNSIID aIID, void** aInstancePtr){  NS_ENSURE_ARG_POINTER(aInstancePtr);  nsISupports *inst = nsnull;  if (aIID.Equals(NS_GET_IID(nsIDOMNSHTMLElement))) {    inst = NS_STATIC_CAST(nsIDOMNSHTMLElement *, this);  } else if (aIID.Equals(NS_GET_IID(nsIDOMElementCSSInlineStyle))) {    inst = NS_STATIC_CAST(nsIDOMElementCSSInlineStyle *, this);  } else {    return mElement->QueryInterface(aIID, aInstancePtr);  }  NS_ADDREF(inst);  *aInstancePtr = inst;  return NS_OK;}