nsCOMPtr<nsIPref> prefService ( do_GetService(NS_PREF_CONTRACTID) ); if ( prefService ) {
nsCOMPtr<nsIPrefBranch> prefBranch ( do_GetService(NS_PREFSERVICE_CONTRACTID) ); if ( prefBranch ) {
nsTextFrame::nsTextFrame(){  // read in our global word selection prefs  if ( !sWordSelectPrefInited ) {    nsCOMPtr<nsIPref> prefService ( do_GetService(NS_PREF_CONTRACTID) );    if ( prefService ) {      PRBool temp = PR_FALSE;      prefService->GetBoolPref("layout.word_select.eat_space_to_next_word", &temp);      sWordSelectEatSpaceAfter = temp;    }    sWordSelectPrefInited = PR_TRUE;  }}