Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileFlameChart.js

Issue 2262303002: DevTooos: Profiler domain refactoring: Make deoptReason and positionTicks fields optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing caseq comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 * @param {number} entryIndex 171 * @param {number} entryIndex
172 * @return {?string} 172 * @return {?string}
173 */ 173 */
174 entryFont: function(entryIndex) 174 entryFont: function(entryIndex)
175 { 175 {
176 if (!this._font) { 176 if (!this._font) {
177 this._font = (this.barHeight() - 4) + "px " + WebInspector.fontFamil y(); 177 this._font = (this.barHeight() - 4) + "px " + WebInspector.fontFamil y();
178 this._boldFont = "bold " + this._font; 178 this._boldFont = "bold " + this._font;
179 } 179 }
180 var node = this._entryNodes[entryIndex]; 180 var node = this._entryNodes[entryIndex];
181 var reason = node.deoptReason; 181 return node.deoptReason ? this._boldFont : this._font;
182 return (reason && reason !== "no reason") ? this._boldFont : this._font;
183 }, 182 },
184 183
185 /** 184 /**
186 * @override 185 * @override
187 * @param {number} entryIndex 186 * @param {number} entryIndex
188 * @return {string} 187 * @return {string}
189 */ 188 */
190 entryColor: function(entryIndex) 189 entryColor: function(entryIndex)
191 { 190 {
192 var node = this._entryNodes[entryIndex]; 191 var node = this._entryNodes[entryIndex];
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 { 666 {
668 var ratio = window.devicePixelRatio; 667 var ratio = window.devicePixelRatio;
669 this._overviewCanvas.width = width * ratio; 668 this._overviewCanvas.width = width * ratio;
670 this._overviewCanvas.height = height * ratio; 669 this._overviewCanvas.height = height * ratio;
671 this._overviewCanvas.style.width = width + "px"; 670 this._overviewCanvas.style.width = width + "px";
672 this._overviewCanvas.style.height = height + "px"; 671 this._overviewCanvas.style.height = height + "px";
673 }, 672 },
674 673
675 __proto__: WebInspector.VBox.prototype 674 __proto__: WebInspector.VBox.prototype
676 } 675 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698