B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Turns the display of log nodes on and off appropriately to reflect the
   * adjustment of the message type filter named by @aPrefKey.
   *
   * @param string aPrefKey
   *        The preference key for the message type being filtered: one of the
   *        values in the MESSAGE_PREFERENCE_KEYS table.
   * @param boolean aState
   *        True if the filter named by @aMessageType is being turned on; false
   *        otherwise.
   * @returns void
   */
Turns the display of log nodes on and off appropriately to reflect the
adjustment of the message type filter named by @aPrefKey.

@param string aPrefKey
The preference key for the message type being filtered: one of the
values in the MESSAGE_PREFERENCE_KEYS table.
@param boolean aState
True if the filter named by @aMessageType is being turned on; false
otherwise.
@returns void
Turns the display of log nodes on and off appropriately to reflect the adjustment of the message type filter named by @aPrefKey . @param string aPrefKey The preference key for the message type being filtered : one of the values in the MESSAGE_PREFERENCE_KEYS table . @param boolean aState True if the filter named by @aMessageType is being turned on ; false otherwise . @returns void
function WCF_adjustVisibilityForMessageType(aPrefKey, aState)
  {
    let outputNode = this.outputNode;
    let doc = this.document;
    let xpath = ".//*[contains(@class, 'hud-msg-node') and " +
      "contains(concat(@class, ' '), 'hud-" + aPrefKey + " ')]";
    let result = doc.evaluate(xpath, outputNode, null,
      Ci.nsIDOMXPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
    for (let i = 0; i < result.snapshotLength; i++) {
      let node = result.snapshotItem(i);
      if (aState) {
        node.classList.remove("hud-filtered-by-type");
      }
      else {
        node.classList.add("hud-filtered-by-type");
      }
    }
    this.regroupOutput();
  }
function WCF_adjustVisibilityForMessageType ( aPrefKey , aState ) { let outputNode = this . outputNode ; let doc = this . document ; let xpath = ".//*[contains(@class, 'hud-msg-node') and " + "contains(concat(@class, ' '), 'hud-" + aPrefKey + " ')]" ; let result = doc . evaluate ( xpath , outputNode , null , Ci . nsIDOMXPathResult . UNORDERED_NODE_SNAPSHOT_TYPE , null ) ; for ( let i = 0 ; i < result . snapshotLength ; i ++ ) { let node = result . snapshotItem ( i ) ; if ( aState ) { node . classList . remove ( "hud-filtered-by-type" ) ; } else { node . classList . add ( "hud-filtered-by-type" ) ; } } this . regroupOutput ( ) ; }
Turns the display of log nodes on and off appropriately to reflect the
 adjustment of the message type filter named by @aPrefKey.
Turns the display of log nodes on and off appropriately to reflect the adjustment of the message type filter named by @aPrefKey .
// Look for message nodes ("hud-msg-node") with the given preference key // ("hud-msg-error", "hud-msg-cssparser", etc.) and add or remove the // "hud-filtered-by-type" class, which turns on or off the display.