Commit 265efbdd authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

DevTools: Restore all functions Icon should be disabled, not hidden.

R=alph
BUG=502186

Review URL: https://codereview.chromium.org/1219693002

git-svn-id: svn://svn.chromium.org/blink/trunk@197991 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent aff1bb64
......@@ -69,7 +69,7 @@ WebInspector.CPUProfileView = function(profileHeader)
this.excludeButton.addEventListener("click", this._excludeClicked, this);
this.resetButton = new WebInspector.ToolbarButton(WebInspector.UIString("Restore all functions."), "refresh-toolbar-item");
this.resetButton.setVisible(false);
this.resetButton.setEnabled(false);
this.resetButton.addEventListener("click", this._resetClicked, this);
this._profileHeader = profileHeader;
......@@ -331,7 +331,7 @@ WebInspector.CPUProfileView.prototype = {
if (!this.dataGrid.selectedNode)
return;
this.resetButton.setVisible(true);
this.resetButton.setEnabled(true);
this.profileDataGridTree.focus(this.dataGrid.selectedNode);
this.refresh();
this.refreshVisibleData();
......@@ -346,7 +346,7 @@ WebInspector.CPUProfileView.prototype = {
selectedNode.deselect();
this.resetButton.setVisible(true);
this.resetButton.setEnabled(true);
this.profileDataGridTree.exclude(selectedNode);
this.refresh();
this.refreshVisibleData();
......@@ -354,7 +354,7 @@ WebInspector.CPUProfileView.prototype = {
_resetClicked: function(event)
{
this.resetButton.setVisible(false);
this.resetButton.setEnabled(false);
this.profileDataGridTree.restore();
this._linkifier.reset();
this.refresh();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment