nsISupports *supports = (nsISupports *)(nsIDOMCSSStyleRuleCollection *)this;
nsISupports *supports = (nsISupports *)(nsIDOMStyleSheetCollection *)this;
CSSStyleRuleCollectionImpl::GetScriptObject(nsIScriptContext *aContext,                                             void** aScriptObject){  nsresult res = NS_OK;  if (nsnull == mScriptObject) {    nsISupports *supports = (nsISupports *)(nsIDOMCSSStyleRuleCollection *)this;    // XXX Should be done through factory    res = NS_NewScriptCSSStyleRuleCollection(aContext,                                              supports,                                             (nsISupports *)(nsICSSStyleSheet*)mStyleSheet,                                              (void**)&mScriptObject);  }  *aScriptObject = mScriptObject;  return res;}