Bug 1446101 - Part 2: Convert the all tabs panel to photon styles r=dao

MozReview-Commit-ID: 3VzqnG6X5rw
This commit is contained in:
Mark Striemer
2018-06-06 15:48:21 -05:00
parent 8b98903c7c
commit bec92cae1b
16 changed files with 465 additions and 57 deletions

View File

@@ -843,12 +843,12 @@ const PanelUI = {
},
_addedShortcuts: false,
_ensureShortcutsShown() {
if (this._addedShortcuts) {
_ensureShortcutsShown(view = this.mainView) {
if (view.hasAttribute("added-shortcuts")) {
return;
}
this._addedShortcuts = true;
for (let button of this.mainView.querySelectorAll("toolbarbutton[key]")) {
view.setAttribute("added-shortcuts", "true");
for (let button of view.querySelectorAll("toolbarbutton[key]")) {
let keyId = button.getAttribute("key");
let key = document.getElementById(keyId);
if (!key) {