PRBool bContains = PR_FALSE; if (NS_SUCCEEDED(mSheet->ContainsStyleSheet(url,bContains)) && bContains != PR_TRUE ) { mChildLoader->LoadChildSheet(mSheet, url, aMedia, kNameSpaceID_Unknown, rule); }
mChildLoader->LoadChildSheet(mSheet, url, aMedia, kNameSpaceID_Unknown, rule);
PRBool CSSParserImpl::ProcessImport(PRInt32& aErrorCode, const nsString& aURLSpec, const nsString& aMedia, RuleAppendFunc aAppendFunc, void* aData){  nsCOMPtr<nsICSSImportRule> rule;  aErrorCode = NS_NewCSSImportRule(getter_AddRefs(rule), aURLSpec, aMedia);  if (NS_FAILED(aErrorCode)) {    return PR_FALSE;  }  (*aAppendFunc)(rule, aData);  if (mChildLoader) {    nsCOMPtr<nsIURI> url;    aErrorCode = NS_NewURI(getter_AddRefs(url), aURLSpec, nsnull, mURL);    if (NS_FAILED(aErrorCode)) {      // import url is bad      // XXX log this somewhere for easier web page debugging      return PR_FALSE;    }    PRBool bContains = PR_FALSE;    if (NS_SUCCEEDED(mSheet->ContainsStyleSheet(url,bContains)) &&         bContains != PR_TRUE ) { // don't allow circular references      mChildLoader->LoadChildSheet(mSheet, url, aMedia, kNameSpaceID_Unknown, rule);    }  }    return PR_TRUE;}