Backed out changeset 6b3dc1102513 (bug 908570)

This commit is contained in:
Sebastian Hengst
2016-10-20 20:03:15 +02:00
parent b3266a180f
commit 003acbb7e1
2 changed files with 5 additions and 5 deletions

View File

@@ -368,11 +368,10 @@ nsContextMenu.prototype = {
var canSpell = InlineSpellCheckerUI.canSpellCheck &&
!InlineSpellCheckerUI.initialSpellCheckPending &&
this.canSpellCheck;
let showDictionaries = canSpell && InlineSpellCheckerUI.enabled;
var onMisspelling = InlineSpellCheckerUI.overMisspelling;
var showUndo = canSpell && InlineSpellCheckerUI.canUndo();
this.showItem("spell-check-enabled", canSpell);
this.showItem("spell-separator", canSpell);
this.showItem("spell-separator", canSpell || this.onEditableArea);
document.getElementById("spell-check-enabled")
.setAttribute("checked", canSpell && InlineSpellCheckerUI.enabled);
@@ -393,7 +392,7 @@ nsContextMenu.prototype = {
this.showItem("spell-no-suggestions", false);
// dictionary list
this.showItem("spell-dictionaries", showDictionaries);
this.showItem("spell-dictionaries", canSpell && InlineSpellCheckerUI.enabled);
if (canSpell) {
var dictMenu = document.getElementById("spell-dictionaries-menu");
var dictSep = document.getElementById("spell-language-separator");
@@ -405,8 +404,7 @@ nsContextMenu.prototype = {
// when there is no spellchecker but we might be able to spellcheck
// add the add to dictionaries item. This will ensure that people
// with no dictionaries will be able to download them
this.showItem("spell-language-separator", showDictionaries);
this.showItem("spell-add-dictionaries-main", showDictionaries);
this.showItem("spell-add-dictionaries-main", true);
}
else
this.showItem("spell-add-dictionaries-main", false);