B2G/gecko/browser/devtools/tilt/TiltVisualizer.jsm
/**
   * Draws a highlighted quad around a currently selected node.
   */
Draws a highlighted quad around a currently selected node.
Draws a highlighted quad around a currently selected node .
function TVP__drawHighlight()
  {
    if (!this._highlight.disabled) {
      let renderer = this._renderer;
      let highlight = this._highlight;
      renderer.depthTest(false);
      renderer.fill(highlight.fill, 0.5);
      renderer.stroke(highlight.stroke);
      renderer.strokeWeight(highlight.strokeWeight);
      renderer.quad(highlight.v0, highlight.v1, highlight.v2, highlight.v3);
    }
  }
function TVP__drawHighlight ( ) { if ( ! this . _highlight . disabled ) { let renderer = this . _renderer ; let highlight = this . _highlight ; renderer . depthTest ( false ) ; renderer . fill ( highlight . fill , 0.5 ) ; renderer . stroke ( highlight . stroke ) ; renderer . strokeWeight ( highlight . strokeWeight ) ; renderer . quad ( highlight . v0 , highlight . v1 , highlight . v2 , highlight . v3 ) ; } }
Draws a highlighted quad around a currently selected node.
Draws a highlighted quad around a currently selected node .
// check if there's anything to highlight (i.e any node is selected) // set the corresponding state to draw the highlight quad