B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Sets the stackframes and breakpoints pane hidden or visible.
   *
   * @param object aFlags [optional]
   *        An object containing some of the following booleans:
   *        - visible: true if the pane should be shown, false for hidden
   *        - animated: true to display an animation on toggle
   *        - silent: true to not update any designated prefs
   */
Sets the stackframes and breakpoints pane hidden or visible.
@param object aFlags [optional]
An object containing some of the following booleans:
- visible: true if the pane should be shown, false for hidden
- animated: true to display an animation on toggle
- silent: true to not update any designated prefs
Sets the stackframes and breakpoints pane hidden or visible . @param object aFlags [ optional ] An object containing some of the following booleans : - visible : true if the pane should be shown false for hidden - animated : true to display an animation on toggle - silent : true to not update any designated prefs
function DV_toggleStackframesAndBreakpointsPane(aFlags = {}) {
    if (aFlags.animated) {
      this._stackframesAndBreakpoints.setAttribute("animated", "");
    } else {
      this._stackframesAndBreakpoints.removeAttribute("animated");
    }
    if (aFlags.visible) {
      this._stackframesAndBreakpoints.style.marginLeft = "0";
      this._togglePanesButton.removeAttribute("stackframesAndBreakpointsHidden");
      this._togglePanesButton.setAttribute("tooltiptext", L10N.getStr("collapsePanes"));
    } else {
      let margin = parseInt(this._stackframesAndBreakpoints.getAttribute("width")) + 1;
      this._stackframesAndBreakpoints.style.marginLeft = -margin + "px";
      this._togglePanesButton.setAttribute("stackframesAndBreakpointsHidden", "true");
      this._togglePanesButton.setAttribute("tooltiptext", L10N.getStr("expandPanes"));
    }
    if (!aFlags.silent) {
      Prefs.stackframesPaneVisible = !!aFlags.visible;
    }
  }
function DV_toggleStackframesAndBreakpointsPane ( aFlags = { } ) { if ( aFlags . animated ) { this . _stackframesAndBreakpoints . setAttribute ( "animated" , "" ) ; } else { this . _stackframesAndBreakpoints . removeAttribute ( "animated" ) ; } if ( aFlags . visible ) { this . _stackframesAndBreakpoints . style . marginLeft = "0" ; this . _togglePanesButton . removeAttribute ( "stackframesAndBreakpointsHidden" ) ; this . _togglePanesButton . setAttribute ( "tooltiptext" , L10N . getStr ( "collapsePanes" ) ) ; } else { let margin = parseInt ( this . _stackframesAndBreakpoints . getAttribute ( "width" ) ) + 1 ; this . _stackframesAndBreakpoints . style . marginLeft = - margin + "px" ; this . _togglePanesButton . setAttribute ( "stackframesAndBreakpointsHidden" , "true" ) ; this . _togglePanesButton . setAttribute ( "tooltiptext" , L10N . getStr ( "expandPanes" ) ) ; } if ( ! aFlags . silent ) { Prefs . stackframesPaneVisible = ! ! aFlags . visible ; } }
Sets the stackframes and breakpoints pane hidden or visible.
Sets the stackframes and breakpoints pane hidden or visible .