rule->GetType(type);
aRule->GetType(type);
CreateNameSpace(nsISupports* aRule, void* aNameSpacePtr){  nsICSSRule* rule = (nsICSSRule*)aRule;  PRInt32 type = nsICSSRule::UNKNOWN_RULE;  rule->GetType(type);  if (nsICSSRule::NAMESPACE_RULE == type) {    nsICSSNameSpaceRule*  nameSpaceRule = (nsICSSNameSpaceRule*)rule;    nsXMLNameSpaceMap *nameSpaceMap =      NS_STATIC_CAST(nsXMLNameSpaceMap*, aNameSpacePtr);    nsIAtom*      prefix = nsnull;    nsAutoString  urlSpec;    nameSpaceRule->GetPrefix(prefix);    nameSpaceRule->GetURLSpec(urlSpec);    nameSpaceMap->AddPrefix(prefix, urlSpec);    return PR_TRUE;  }  // stop if not namespace, import or charset because namespace can't follow anything else  return (((nsICSSRule::CHARSET_RULE == type) ||            (nsICSSRule::IMPORT_RULE)) ? PR_TRUE : PR_FALSE); }