mUnderlineLinks = nsContentUtils::GetBoolPref("browser.underline_anchors", mUnderlineLinks);  nsAdoptingCString colorStr = nsContentUtils::GetCharPref("browser.anchor_color");  if (!colorStr.IsEmpty()) {
PRBool boolPref; nsXPIDLCString colorStr; if (NS_SUCCEEDED(mPrefs->GetBoolPref("browser.underline_anchors", &boolPref))) { mUnderlineLinks = boolPref; } if (NS_SUCCEEDED(mPrefs->CopyCharPref("browser.anchor_color", getter_Copies(colorStr)))) {
nsPresContext::GetUserPreferences(){  mFontScaler =    nsContentUtils::GetIntPref("browser.display.base_font_scaler",                               mFontScaler);  // * document colors  GetDocumentColorPreferences();  // * link colors  mUnderlineLinks =    nsContentUtils::GetBoolPref("browser.underline_anchors", mUnderlineLinks);  nsAdoptingCString colorStr =    nsContentUtils::GetCharPref("browser.anchor_color");  if (!colorStr.IsEmpty()) {    mLinkColor = MakeColorPref(colorStr);  }  colorStr =    nsContentUtils::GetCharPref("browser.active_color");  if (!colorStr.IsEmpty()) {    mActiveLinkColor = MakeColorPref(colorStr);  }  colorStr = nsContentUtils::GetCharPref("browser.visited_color");  if (!colorStr.IsEmpty()) {    mVisitedLinkColor = MakeColorPref(colorStr);  }  mUseFocusColors =    nsContentUtils::GetBoolPref("browser.display.use_focus_colors",                                mUseFocusColors);  mFocusTextColor = mDefaultColor;  mFocusBackgroundColor = mBackgroundColor;  colorStr = nsContentUtils::GetCharPref("browser.display.focus_text_color");  if (!colorStr.IsEmpty()) {    mFocusTextColor = MakeColorPref(colorStr);  }  colorStr =    nsContentUtils::GetCharPref("browser.display.focus_background_color");  if (!colorStr.IsEmpty()) {    mFocusBackgroundColor = MakeColorPref(colorStr);  }  mFocusRingWidth =    nsContentUtils::GetIntPref("browser.display.focus_ring_width",                               mFocusRingWidth);  mFocusRingOnAnything =    nsContentUtils::GetBoolPref("browser.display.focus_ring_on_anything",                                mFocusRingOnAnything);  // * use fonts?  mUseDocumentFonts =    nsContentUtils::GetIntPref("browser.display.use_document_fonts") != 0;  // * replace backslashes with Yen signs? (bug 245770)  mEnableJapaneseTransform =    nsContentUtils::GetBoolPref("layout.enable_japanese_specific_transform");  GetFontPreferences();  // * image animation  const nsAdoptingCString& animatePref =    nsContentUtils::GetCharPref("image.animation_mode");  if (animatePref.Equals("normal"))    mImageAnimationModePref = imgIContainer::kNormalAnimMode;  else if (animatePref.Equals("none"))    mImageAnimationModePref = imgIContainer::kDontAnimMode;  else if (animatePref.Equals("once"))    mImageAnimationModePref = imgIContainer::kLoopOnceAnimMode;#ifdef IBMBIDI  PRInt32 prefInt =    nsContentUtils::GetIntPref("bidi.direction",                               GET_BIDI_OPTION_DIRECTION(mBidi));  SET_BIDI_OPTION_DIRECTION(mBidi, prefInt);  prefInt =    nsContentUtils::GetIntPref("bidi.texttype",                               GET_BIDI_OPTION_TEXTTYPE(mBidi));  SET_BIDI_OPTION_TEXTTYPE(mBidi, prefInt);  prefInt =    nsContentUtils::GetIntPref("bidi.controlstextmode",                               GET_BIDI_OPTION_CONTROLSTEXTMODE(mBidi));  SET_BIDI_OPTION_CONTROLSTEXTMODE(mBidi, prefInt);  prefInt =    nsContentUtils::GetIntPref("bidi.numeral",                               GET_BIDI_OPTION_NUMERAL(mBidi));  SET_BIDI_OPTION_NUMERAL(mBidi, prefInt);  prefInt =    nsContentUtils::GetIntPref("bidi.support",                               GET_BIDI_OPTION_SUPPORT(mBidi));  SET_BIDI_OPTION_SUPPORT(mBidi, prefInt);  prefInt =    nsContentUtils::GetIntPref("bidi.characterset",                               GET_BIDI_OPTION_CHARACTERSET(mBidi));  SET_BIDI_OPTION_CHARACTERSET(mBidi, prefInt);#endif}