diff options
Diffstat (limited to 'webkit/glue')
-rw-r--r-- | webkit/glue/devtools/js/devtools.css | 8 | ||||
-rw-r--r-- | webkit/glue/devtools/js/heap_profiler_panel.js | 6 |
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() { |