mInner->mNameSpace->CreateChildNameSpace(prefix, urlSpec, *getter_AddRefs(newNameSpace));
mInner->mNameSpace-> CreateChildNameSpace(prefix, urlSpec, getter_AddRefs(newNameSpace));
CSSStyleSheetImpl::AppendStyleRule(nsICSSRule* aRule){  NS_PRECONDITION(nsnull != aRule, "null arg");  if (NS_SUCCEEDED(WillDirty())) {    if (! mInner->mOrderedRules) {      NS_NewISupportsArray(&(mInner->mOrderedRules));    }    if (mInner->mOrderedRules) {      mInner->mOrderedRules->AppendElement(aRule);      aRule->SetStyleSheet(this);      DidDirty();      PRInt32 type = nsICSSRule::UNKNOWN_RULE;      aRule->GetType(type);      if (nsICSSRule::NAMESPACE_RULE == type) {        if (! mInner->mNameSpace) {          nsContentUtils::GetNSManagerWeakRef()->CreateRootNameSpace(*getter_AddRefs(mInner->mNameSpace));        }        if (mInner->mNameSpace) {          nsCOMPtr<nsICSSNameSpaceRule> nameSpaceRule(do_QueryInterface(aRule));          nsCOMPtr<nsINameSpace> newNameSpace;          nsCOMPtr<nsIAtom> prefix;          nsAutoString  urlSpec;          nameSpaceRule->GetPrefix(*getter_AddRefs(prefix));          nameSpaceRule->GetURLSpec(urlSpec);          mInner->mNameSpace->CreateChildNameSpace(prefix, urlSpec,                                                   *getter_AddRefs(newNameSpace));          if (newNameSpace) {            mInner->mNameSpace = newNameSpace;          }        }      }            }  }  return NS_OK;}