| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |