| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1946 context.font = "10px " + window.getComputedStyle(this.element, null)
.getPropertyValue("font-family"); | 1946 context.font = "10px " + window.getComputedStyle(this.element, null)
.getPropertyValue("font-family"); |
| 1947 context.fillStyle = "rgba(255, 255, 255, 0.75)"; | 1947 context.fillStyle = "rgba(255, 255, 255, 0.75)"; |
| 1948 context.fillRect(labelX, labelY - gridLabelHeight, labelWidth, gridL
abelHeight); | 1948 context.fillRect(labelX, labelY - gridLabelHeight, labelWidth, gridL
abelHeight); |
| 1949 context.fillStyle = "rgb(64, 64, 64)"; | 1949 context.fillStyle = "rgb(64, 64, 64)"; |
| 1950 context.fillText(label, labelX + labelPadding, labelY); | 1950 context.fillText(label, labelX + labelPadding, labelY); |
| 1951 context.fill(); | 1951 context.fill(); |
| 1952 context.closePath(); | 1952 context.closePath(); |
| 1953 } | 1953 } |
| 1954 }, | 1954 }, |
| 1955 | 1955 |
| 1956 /** |
| 1957 * @override |
| 1958 */ |
| 1956 onResize: function() | 1959 onResize: function() |
| 1957 { | 1960 { |
| 1958 this._updateOverviewCanvas = true; | 1961 this._updateOverviewCanvas = true; |
| 1959 this._scheduleUpdate(); | 1962 this._scheduleUpdate(); |
| 1960 }, | 1963 }, |
| 1961 | 1964 |
| 1962 _onWindowChanged: function() | 1965 _onWindowChanged: function() |
| 1963 { | 1966 { |
| 1964 if (!this._updateGridTimerId) | 1967 if (!this._updateGridTimerId) |
| 1965 this._updateGridTimerId = setTimeout(this._updateGrid.bind(this), 10
); | 1968 this._updateGridTimerId = setTimeout(this._updateGrid.bind(this), 10
); |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2248 name.textContent = WebInspector.beautifyFunctionName(frame.functionN
ame); | 2251 name.textContent = WebInspector.beautifyFunctionName(frame.functionN
ame); |
| 2249 if (frame.scriptId) { | 2252 if (frame.scriptId) { |
| 2250 var urlElement = this._linkifier.linkifyScriptLocation(this._tar
get, String(frame.scriptId), frame.scriptName, frame.line - 1, frame.column - 1)
; | 2253 var urlElement = this._linkifier.linkifyScriptLocation(this._tar
get, String(frame.scriptId), frame.scriptName, frame.line - 1, frame.column - 1)
; |
| 2251 frameDiv.appendChild(urlElement); | 2254 frameDiv.appendChild(urlElement); |
| 2252 } | 2255 } |
| 2253 } | 2256 } |
| 2254 }, | 2257 }, |
| 2255 | 2258 |
| 2256 __proto__: WebInspector.Widget.prototype | 2259 __proto__: WebInspector.Widget.prototype |
| 2257 }; | 2260 }; |
| OLD | NEW |