result = rule->QueryInterface(NS_GET_IID(nsICSSStyleRule), (void**)&cssRule);
result = rule->QueryInterface(kICSSStyleRuleIID, (void**)&cssRule);
nsDOMCSSAttributeDeclaration::SetCSSDeclaration(nsCSSDeclaration *aDecl){  nsHTMLValue val;  nsIStyleRule* rule;  nsICSSStyleRule*  cssRule;  nsresult result = NS_OK;  if (nsnull != mContent) {    mContent->GetHTMLAttribute(nsHTMLAtoms::style, val);    if (eHTMLUnit_ISupports == val.GetUnit()) {      rule = (nsIStyleRule*) val.GetISupportsValue();      result = rule->QueryInterface(NS_GET_IID(nsICSSStyleRule), (void**)&cssRule);      if (NS_OK == result) {        cssRule->SetDeclaration(aDecl);        NS_RELEASE(cssRule);      }      NS_RELEASE(rule);    }  }  return result;}