B2G/gecko/browser/devtools/styleinspector/CssRuleView.jsm
/**
   * Update the highlighted element.
   *
   * @param {nsIDOMElement} aElement
   *        The node whose style rules we'll inspect.
   */
Update the highlighted element.
@param {nsIDOMElement} aElement
The node whose style rules we'll inspect.
Update the highlighted element . @param { nsIDOMElement } aElement The node whose style rules we ' ll inspect .
function CssRuleView_highlight(aElement)
  {
    if (this._viewedElement === aElement) {
      return;
    }
    this.clear();
    if (this._elementStyle) {
      delete this._elementStyle;
    }
    this._viewedElement = aElement;
    if (!this._viewedElement) {
      this._showEmpty();
      return;
    }
    this._elementStyle = new ElementStyle(aElement, this.store);
    this._elementStyle.onChanged = function() {
      this._changed();
    }.bind(this);
    this._createEditors();
  }
function CssRuleView_highlight ( aElement ) { if ( this . _viewedElement === aElement ) { return ; } this . clear ( ) ; if ( this . _elementStyle ) { delete this . _elementStyle ; } this . _viewedElement = aElement ; if ( ! this . _viewedElement ) { this . _showEmpty ( ) ; return ; } this . _elementStyle = new ElementStyle ( aElement , this . store ) ; this . _elementStyle . onChanged = function ( ) { this . _changed ( ) ; } . bind ( this ) ; this . _createEditors ( ) ; }
Update the highlighted element.
Update the highlighted element .