зеркало из https://github.com/mozilla/gecko-dev.git
152553 - "Show Anonymous Content" menu item doesn't reflect the true state because we were checking |false != null| or |true != null| to determine state.
r=timeless sr=bzbarsky
This commit is contained in:
Родитель
0c002d6e16
Коммит
33dff8528e
|
@ -193,7 +193,7 @@ DOMViewer.prototype =
|
||||||
{
|
{
|
||||||
var val = aExplicit ? aValue : !this.mDOMView.showAnonymousContent;
|
var val = aExplicit ? aValue : !this.mDOMView.showAnonymousContent;
|
||||||
this.mDOMView.showAnonymousContent = val;
|
this.mDOMView.showAnonymousContent = val;
|
||||||
this.mPanel.panelset.setCommandAttribute("cmd:toggleAnon", "checked", val != null);
|
this.mPanel.panelset.setCommandAttribute("cmd:toggleAnon", "checked", val);
|
||||||
PrefUtils.setPref("inspector.dom.showAnon", val);
|
PrefUtils.setPref("inspector.dom.showAnon", val);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ DOMViewer.prototype =
|
||||||
{
|
{
|
||||||
var val = aExplicit ? aValue : !this.mDOMView.showSubDocuments;
|
var val = aExplicit ? aValue : !this.mDOMView.showSubDocuments;
|
||||||
this.mDOMView.showSubDocuments = val;
|
this.mDOMView.showSubDocuments = val;
|
||||||
this.mPanel.panelset.setCommandAttribute("cmd:toggleSubDocs", "checked", val != null);
|
this.mPanel.panelset.setCommandAttribute("cmd:toggleSubDocs", "checked", val);
|
||||||
},
|
},
|
||||||
|
|
||||||
toggleAttributes: function(aExplicit, aValue)
|
toggleAttributes: function(aExplicit, aValue)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче