B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Applies the user's filters to a newly-created message node via CSS
   * classes.
   *
   * @param nsIDOMNode aNode
   *        The newly-created message node.
   * @return boolean
   *         True if the message was filtered or false otherwise.
   */
Applies the user's filters to a newly-created message node via CSS
classes.

@param nsIDOMNode aNode
The newly-created message node.
@return boolean
True if the message was filtered or false otherwise.
Applies the user ' s filters to a newly - created message node via CSS classes . @param nsIDOMNode aNode The newly - created message node . @return boolean True if the message was filtered or false otherwise .
function WCF_filterMessageNode(aNode)
  {
    let isFiltered = false;
    let prefKey = MESSAGE_PREFERENCE_KEYS[aNode.category][aNode.severity];
    if (prefKey && !this.getFilterState(prefKey)) {
      aNode.classList.add("hud-filtered-by-type");
      isFiltered = true;
    }
    let search = this.filterBox.value;
    let text = aNode.clipboardText;
    if (!this.stringMatchesFilters(text, search)) {
      aNode.classList.add("hud-filtered-by-string");
      isFiltered = true;
    }
    return isFiltered;
  }
function WCF_filterMessageNode ( aNode ) { let isFiltered = false ; let prefKey = MESSAGE_PREFERENCE_KEYS [ aNode . category ] [ aNode . severity ] ; if ( prefKey && ! this . getFilterState ( prefKey ) ) { aNode . classList . add ( "hud-filtered-by-type" ) ; isFiltered = true ; } let search = this . filterBox . value ; let text = aNode . clipboardText ; if ( ! this . stringMatchesFilters ( text , search ) ) { aNode . classList . add ( "hud-filtered-by-string" ) ; isFiltered = true ; } return isFiltered ; }
Applies the user's filters to a newly-created message node via CSS
 classes.
Applies the user ' s filters to a newly - created message node via CSS classes .
// Filter by the message type. // The node is filtered by type. // Filter on the search string. // if string matches the filter text