Skip to content

Commit

Permalink
DevTools: support omitFocus for swatches in StylesSidebarPane
Browse files Browse the repository at this point in the history
BUG=none
R=dgozman, pfeldman

Review-Url: https://codereview.chromium.org/1982753003
Cr-Commit-Position: refs/heads/master@{#394030}
  • Loading branch information
aslushnikov authored and Commit bot committed May 17, 2016
1 parent 6499951 commit 75893a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions front_end/elements/StylesPopoverHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ WebInspector.BezierPopoverIcon.prototype = {

this._originalPropertyText = this._treeElement.property.propertyText;
this._treeElement.parentPane().setEditingStyle(true);
var uiLocation = WebInspector.cssWorkspaceBinding.propertyUILocation(this._treeElement.property, false /* forName */);
if (uiLocation)
WebInspector.Revealer.reveal(uiLocation, true /* omitFocus */);
},

/**
Expand Down Expand Up @@ -307,6 +310,9 @@ WebInspector.ColorSwatchPopoverIcon.prototype = {

this._originalPropertyText = this._treeElement.property.propertyText;
this._treeElement.parentPane().setEditingStyle(true);
var uiLocation = WebInspector.cssWorkspaceBinding.propertyUILocation(this._treeElement.property, false /* forName */);
if (uiLocation)
WebInspector.Revealer.reveal(uiLocation, true /* omitFocus */);
},

/**
Expand Down

0 comments on commit 75893a0

Please sign in to comment.