rem: else if (mode == gDisplayModeAllTags) 
add: else if (mode == kDisplayModeAllTags) 
context: function SetDisplayMode(mode){  if (!isHTMLEditor())    return false;  // Already in requested mode:  //  return false to indicate we didn't switch  if (mode == gEditorDisplayMode)    return false;  gEditorDisplayMode = mode;  // Load/unload appropriate override style sheet  try {    var editor = GetCurrentEditor();    if (mode == gDisplayModePreview)    {      // Disable all extra "edit mode" style sheets       editor.enableStyleSheet(gNormalStyleSheet, false);      editor.enableStyleSheet(gAllTagsStyleSheet, false);    }    else if (mode == gDisplayModeNormal)    {      editor.addOverrideStyleSheet(gNormalStyleSheet);      // Disable ShowAllTags mode if that was the previous mode      if (gPreviousNonSourceDisplayMode == gDisplayModeAllTags)        editor.enableStyleSheet(gAllTagsStyleSheet, false);    }    else if (mode == gDisplayModeAllTags)    {      editor.addOverrideStyleSheet(gNormalStyleSheet);      editor.addOverrideStyleSheet(gAllTagsStyleSheet);    }  } catch(e) {}  //XXX We still have to tell editorShell if we are in HTMLSource mode  //    because commands in nsComposerCommands.cpp can't access JS command results yet  editorShell.HTMLSourceMode = (mode == gDisplayModeSource);  // Save the last non-source mode so we can cancel source editing easily  if (mode != gDisplayModeSource)    gPreviousNonSourceDisplayMode = mode;  // Set the UI states  var selectedTab = null;  if (mode == gDisplayModePreview) selectedTab = gPreviewModeButton;  if (mode == gDisplayModeNormal) selectedTab = gNormalModeButton;  if (mode == gDisplayModeAllTags) selectedTab = gTagModeButton;  if (mode == gDisplayModeSource) selectedTab = gSourceModeButton;  if (selectedTab)    document.getElementById("EditModeTabs").selectedItem = selectedTab;  if (mode == gDisplayModeSource)  {    // Switch to the sourceWindow (second in the deck)    gContentWindowDeck.setAttribute("selectedIndex","1");    //Hide the formatting toolbar if not already hidden    gFormatToolbarHidden = gFormatToolbar.getAttribute("hidden");    if (gFormatToolbarHidden != "true")    {      gFormatToolbar.setAttribute("hidden", "true");    }    gSourceContentWindow.focus();  }  else  {    // Switch to the normal editor (first in the deck)    gContentWindowDeck.setAttribute("selectedIndex","0");    // Restore menus and toolbars    if (gFormatToolbarHidden != "true")    {      gFormatToolbar.setAttribute("hidden", gFormatToolbarHidden);    }    gContentWindow.focus();  }  // update commands to disable or re-enable stuff  window.updateCommands("mode_switch");  // We must set check on menu item since toolbar may have been used  document.getElementById("viewPreviewMode").setAttribute("checked","false");  document.getElementById("viewNormalMode").setAttribute("checked","false");  document.getElementById("viewAllTagsMode").setAttribute("checked","false");  document.getElementById("viewSourceMode").setAttribute("checked","false");  var menuID;  switch(mode)  {    case gDisplayModePreview:      menuID = "viewPreviewMode";      break;    case gDisplayModeNormal:      menuID = "viewNormalMode";      break;    case gDisplayModeAllTags:      menuID = "viewAllTagsMode";      break;    case gDisplayModeSource:      menuID = "viewSourceMode";      break;  }  if (menuID)    document.getElementById(menuID).setAttribute("checked","true");  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/22d098a7174f48153b74dd770b2e40ab6f898f16/editor.js/buggy/editor/ui/composer/content/editor.js