B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Highlights a frame from the stackframe container as selected/deselected.
   *
   * @param number aDepth
   *        The frame depth specified by the debugger.
   * @param boolean aFlag
   *        True if the frame should be deselected, false otherwise.
   */
Highlights a frame from the stackframe container as selected/deselected.
@param number aDepth
The frame depth specified by the debugger.
@param boolean aFlag
True if the frame should be deselected, false otherwise.
Highlights a frame from the stackframe container as selected / deselected . @param number aDepth The frame depth specified by the debugger . @param boolean aFlag True if the frame should be deselected false otherwise .
function DVF_highlightFrame(aDepth, aFlag) {
    let frame = document.getElementById("stackframe-" + aDepth);
    if (!frame) {
      return;
    }
    if (!aFlag && !frame.classList.contains("selected")) {
      frame.classList.add("selected");
    }
    else if (aFlag && frame.classList.contains("selected")) {
      frame.classList.remove("selected");
    }
  }
function DVF_highlightFrame ( aDepth , aFlag ) { let frame = document . getElementById ( "stackframe-" + aDepth ) ; if ( ! frame ) { return ; } if ( ! aFlag && ! frame . classList . contains ( "selected" ) ) { frame . classList . add ( "selected" ) ; } else if ( aFlag && frame . classList . contains ( "selected" ) ) { frame . classList . remove ( "selected" ) ; } }
Highlights a frame from the stackframe container as selected/deselected.
Highlights a frame from the stackframe container as selected / deselected .
// The list item wasn't found in the stackframe container. // Add the 'selected' css class if the frame isn't already selected. // Remove the 'selected' css class if the frame is already selected.