diff options
author | mnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-27 15:50:18 +0000 |
---|---|---|
committer | mnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-27 15:50:18 +0000 |
commit | b78edc61aa9320139b49bb79d04ae0822d9243c7 (patch) | |
tree | f306f8e1f98f2493efe1f82b6673345a1f1d395c | |
parent | 52315371aa5bb0c9d2c6094d28649684765057d1 (diff) | |
download | chromium_src-b78edc61aa9320139b49bb79d04ae0822d9243c7.zip chromium_src-b78edc61aa9320139b49bb79d04ae0822d9243c7.tar.gz chromium_src-b78edc61aa9320139b49bb79d04ae0822d9243c7.tar.bz2 |
DevTools: fix colors of heap snapshot summary bar.
BUG=25927
TEST=none
Review URL: http://codereview.chromium.org/334046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30197 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/glue/devtools/js/heap_profiler_panel.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/webkit/glue/devtools/js/heap_profiler_panel.js b/webkit/glue/devtools/js/heap_profiler_panel.js index d802ed4..666f17e 100644 --- a/webkit/glue/devtools/js/heap_profiler_panel.js +++ b/webkit/glue/devtools/js/heap_profiler_panel.js @@ -34,6 +34,12 @@ WebInspector.HeapSnapshotView = function(parent, profile) this.showCountDeltaAsPercent = true; this.showSizeDeltaAsPercent = true; + this.categories = { + code: new WebInspector.ResourceCategory("code", WebInspector.UIString("Code"), "rgb(255,121,0)"), + data: new WebInspector.ResourceCategory("data", WebInspector.UIString("Objects and Data"), "rgb(47,102,236)"), + other: new WebInspector.ResourceCategory("other", WebInspector.UIString("Other"), "rgb(186,186,186)") + }; + this.summaryBar = new WebInspector.SummaryBar(this.categories); this.summaryBar.element.id = "heap-snapshot-summary"; this.summaryBar.calculator = new WebInspector.HeapSummaryCalculator(profile.used); @@ -72,11 +78,6 @@ WebInspector.HeapSnapshotView = function(parent, profile) WebInspector.HeapSnapshotView.prototype = { - get categories() - { - return {code: {title: WebInspector.UIString("Code"), color: {r: 255, g: 121, b: 0}}, data: {title: WebInspector.UIString("Objects and Data"), color: {r: 47, g: 102, b: 236}}, other: {title: WebInspector.UIString("Other"), color: {r: 186, g: 186, b: 186}}}; - }, - get statusBarItems() { return [this.baseSelectElement, this.percentButton.element]; |