B2G/gecko/browser/devtools/styleinspector/CssLogic.jsm
/**
   * Check if the given selector matches the highlighted element or any of its
   * parents.
   *
   * @private
   * @param {string} aSelector the selector string you want to check.
   * @return {boolean} true if the given selector matches the highlighted
   * element or any of its parents, otherwise false is returned.
   */
Check if the given selector matches the highlighted element or any of its
parents.

@private
@param {string} aSelector the selector string you want to check.
@return {boolean} true if the given selector matches the highlighted
element or any of its parents, otherwise false is returned.
Check if the given selector matches the highlighted element or any of its parents . @private @param { string } aSelector the selector string you want to check . @return { boolean } true if the given selector matches the highlighted element or any of its parents otherwise false is returned .
function CL__selectorMatchesElement(aSelector)
  {
    let element = this.viewedElement;
    do {
      if (element.mozMatchesSelector(aSelector)) {
        return true;
      }
    } while ((element = element.parentNode) &&
             element.nodeType === Ci.nsIDOMNode.ELEMENT_NODE);
    return false;
  }
function CL__selectorMatchesElement ( aSelector ) { let element = this . viewedElement ; do { if ( element . mozMatchesSelector ( aSelector ) ) { return true ; } } while ( ( element = element . parentNode ) && element . nodeType === Ci . nsIDOMNode . ELEMENT_NODE ) ; return false ; }
Check if the given selector matches the highlighted element or any of its
 parents.
Check if the given selector matches the highlighted element or any of its parents .