B2G/gecko/browser/devtools/tilt/TiltVisualizer.jsm
/**
   * Deletes a node from the visualization mesh.
   *
   * @param {Number} aNodeIndex
   *                 the index of the node in the this._traverseData array;
   *                 if not specified, it will default to the current selection
   */
Deletes a node from the visualization mesh.
@param {Number} aNodeIndex
the index of the node in the this._traverseData array;
if not specified, it will default to the current selection
Deletes a node from the visualization mesh . @param { Number } aNodeIndex the index of the node in the this . _traverseData array ; if not specified it will default to the current selection
function TVP_deleteNode(aNodeIndex)
  {
    if ((aNodeIndex = aNodeIndex || this._currentSelection) < 1) {
      return;
    }
    let renderer = this._renderer;
    let groupIndex = parseInt(aNodeIndex / MAX_GROUP_NODES);
    let nodeIndex = parseInt((aNodeIndex + (groupIndex ? 1 : 0)) % MAX_GROUP_NODES);
    let group = this._meshStacks[groupIndex];
    let vertices = group.vertices.components;
    for (let i = 0, k = 36 * nodeIndex; i < 36; i++) {
      vertices[i + k] = 0;
    }
    group.vertices = new renderer.VertexBuffer(vertices, 3);
    this._highlight.disabled = true;
    this._redraw = true;
    Services.obs.notifyObservers(null, this.NOTIFICATIONS.NODE_REMOVED, null);
  }
function TVP_deleteNode ( aNodeIndex ) { if ( ( aNodeIndex = aNodeIndex || this . _currentSelection ) < 1 ) { return ; } let renderer = this . _renderer ; let groupIndex = parseInt ( aNodeIndex / MAX_GROUP_NODES ) ; let nodeIndex = parseInt ( ( aNodeIndex + ( groupIndex ? 1 : 0 ) ) % MAX_GROUP_NODES ) ; let group = this . _meshStacks [ groupIndex ] ; let vertices = group . vertices . components ; for ( let i = 0 , k = 36 * nodeIndex ; i < 36 ; i ++ ) { vertices [ i + k ] = 0 ; } group . vertices = new renderer . VertexBuffer ( vertices , 3 ) ; this . _highlight . disabled = true ; this . _redraw = true ; Services . obs . notifyObservers ( null , this . NOTIFICATIONS . NODE_REMOVED , null ) ; }
Deletes a node from the visualization mesh.
Deletes a node from the visualization mesh .
// we probably don't want to delete the html or body node.. just sayin'