PRINTF("PrefStyleSheet %s %s\n", mEnablePrefStyleSheet ? "ENABLED" : "DISABLED", bChanging ? "(state toggled)" : "(state unchanged)");
PresShell::EnablePrefStyleRules(PRBool aEnable, PRUint8 aPrefType/*=0xFF*/){  nsresult result = NS_OK;  // capture change in state  PRBool bChanging = (mEnablePrefStyleSheet != aEnable) ? PR_TRUE : PR_FALSE;  // set to desired state  mEnablePrefStyleSheet = aEnable;#ifdef NS_DEBUG  printf("PrefStyleSheet %s %s\n",    mEnablePrefStyleSheet ? "ENABLED" : "DISABLED",    bChanging ? "(state toggled)" : "(state unchanged)");#endif  // deal with changing state  if(bChanging){    switch (mEnablePrefStyleSheet){    case PR_TRUE:      // was off, now on, so create the rules      result = SetPreferenceStyleRules(PR_TRUE);      break;    default :      // was on, now off, so clear the rules      result = ClearPreferenceStyleRules();      break;    }  }  return result;}