nsString baseURL;
nsAutoString baseURL;
PRBool CSSParserImpl::ParseURL(PRInt32& aErrorCode, nsCSSValue& aValue){  if (ExpectSymbol(aErrorCode, '(', PR_FALSE)) {    if (! GetURLToken(aErrorCode, PR_TRUE)) {      return PR_FALSE;    }    nsCSSToken* tk = &mToken;    if ((eCSSToken_String == tk->mType) || (eCSSToken_URL == tk->mType)) {      // Translate url into an absolute url if the url is relative to      // the style sheet.      // XXX editors won't like this - too bad for now      nsAutoString absURL;      if (nsnull != mURL) {        nsString baseURL;        nsresult rv;#ifdef NECKO		nsCOMPtr<nsIURI> base;		rv = mURL->Clone(getter_AddRefs(base));		if (NS_SUCCEEDED(rv))			rv = NS_MakeAbsoluteURI(nsCAutoString(tk->mIdent), base, absURL);#else        rv = NS_MakeAbsoluteURL(mURL, baseURL, tk->mIdent, absURL);#endif // NECKO        if (NS_FAILED(rv)) {          absURL = tk->mIdent;        }      }      else {        absURL = tk->mIdent;      }      if (ExpectSymbol(aErrorCode, ')', PR_TRUE)) {        aValue.SetStringValue(absURL, eCSSUnit_URL);        return PR_TRUE;      }    }  }  return PR_FALSE;}