summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authormnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 07:13:18 +0000
committermnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 07:13:18 +0000
commitb0d3f08961d7bb2e17df4683b7dfbce9a6ece4ee (patch)
treef66ae5cc271032c7a88c1a45a73649ed304ba7b6 /webkit
parent953706c173db261239e7d36ff442cba6e1e11db6 (diff)
downloadchromium_src-b0d3f08961d7bb2e17df4683b7dfbce9a6ece4ee.zip
chromium_src-b0d3f08961d7bb2e17df4683b7dfbce9a6ece4ee.tar.gz
chromium_src-b0d3f08961d7bb2e17df4683b7dfbce9a6ece4ee.tar.bz2
DevTools: make "Take snapshot" button in heap profiler visible.
TEST=none BUG=none Review URL: http://codereview.chromium.org/173339 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/devtools/js/devtools.css8
-rw-r--r--webkit/glue/devtools/js/heap_profiler_panel.js6
2 files changed, 4 insertions, 10 deletions
diff --git a/webkit/glue/devtools/js/devtools.css b/webkit/glue/devtools/js/devtools.css
index f542d2a..b1df617 100644
--- a/webkit/glue/devtools/js/devtools.css
+++ b/webkit/glue/devtools/js/devtools.css
@@ -40,12 +40,8 @@ body.attached #toolbar {
margin-left: -1px;
}
-.heap-snapshot-status-bar-item {
- background-image: url(Images/focusButtons.png) !important;
-}
-
-.heap-snapshot-status-bar-item:active {
- background-position: 32px 0;
+.heap-snapshot-status-bar-item .glyph {
+ -webkit-mask-image: url(Images/focusButtonGlyph.png);
}
.heap-snapshot-sidebar-tree-item .icon {
diff --git a/webkit/glue/devtools/js/heap_profiler_panel.js b/webkit/glue/devtools/js/heap_profiler_panel.js
index 36dd3ab..67b0922 100644
--- a/webkit/glue/devtools/js/heap_profiler_panel.js
+++ b/webkit/glue/devtools/js/heap_profiler_panel.js
@@ -31,9 +31,7 @@ WebInspector.HeapProfilerPanel = function() {
this.snapshotViews.id = "heap-snapshot-views";
this.element.appendChild(this.snapshotViews);
- this.snapshotButton = document.createElement("button");
- this.snapshotButton.title = WebInspector.UIString("Take heap snapshot.");
- this.snapshotButton.className = "heap-snapshot-status-bar-item status-bar-item";
+ this.snapshotButton = new WebInspector.StatusBarButton(WebInspector.UIString("Take heap snapshot."), "heap-snapshot-status-bar-item");
this.snapshotButton.addEventListener("click", this._snapshotClicked.bind(this), false);
this.snapshotViewStatusBarItemsContainer = document.createElement("div");
@@ -50,7 +48,7 @@ WebInspector.HeapProfilerPanel.prototype = {
},
get statusBarItems() {
- return [this.snapshotButton, this.snapshotViewStatusBarItemsContainer];
+ return [this.snapshotButton.element, this.snapshotViewStatusBarItemsContainer];
},
show: function() {