B2G/gecko/browser/devtools/highlighter/highlighter.jsm
/**
   * Create the menuitems for toggling the selection's pseudo-class state
   *
   * @returns DocumentFragment. The menuitems for toggling pseudo-classes.
   */
Create the menuitems for toggling the selection's pseudo-class state
@returns DocumentFragment. The menuitems for toggling pseudo-classes.
Create the menuitems for toggling the selection ' s pseudo - class state @returns DocumentFragment . The menuitems for toggling pseudo - classes .
function IUI_buildPseudoClassesMenu()
  {
    let fragment = this.chromeDoc.createDocumentFragment();
    for (let i = 0; i < PSEUDO_CLASSES.length; i++) {
      let pseudo = PSEUDO_CLASSES[i];
      let item = this.chromeDoc.createElement("menuitem");
      item.id = "highlighter-pseudo-class-menuitem-" + pseudo;
      item.setAttribute("type", "checkbox");
      item.setAttribute("label", pseudo);
      item.className = "highlighter-pseudo-class-menuitem";
      item.setAttribute("checked", DOMUtils.hasPseudoClassLock(this.node,
                        pseudo));
      item.addEventListener("command",
                            this.pseudoClassLockToggled.bind(this, pseudo), false);
      fragment.appendChild(item);
    }
    return fragment;
  }
function IUI_buildPseudoClassesMenu ( ) { let fragment = this . chromeDoc . createDocumentFragment ( ) ; for ( let i = 0 ; i < PSEUDO_CLASSES . length ; i ++ ) { let pseudo = PSEUDO_CLASSES [ i ] ; let item = this . chromeDoc . createElement ( "menuitem" ) ; item . id = "highlighter-pseudo-class-menuitem-" + pseudo ; item . setAttribute ( "type" , "checkbox" ) ; item . setAttribute ( "label" , pseudo ) ; item . className = "highlighter-pseudo-class-menuitem" ; item . setAttribute ( "checked" , DOMUtils . hasPseudoClassLock ( this . node , pseudo ) ) ; item . addEventListener ( "command" , this . pseudoClassLockToggled . bind ( this , pseudo ) , false ) ; fragment . appendChild ( item ) ; } return fragment ; }
Create the menuitems for toggling the selection's pseudo-class state
 @returns DocumentFragment.
Create the menuitems for toggling the selection ' s pseudo - class state @returns DocumentFragment .