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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 | 422 |
423 return conditionElement; | 423 return conditionElement; |
424 }, | 424 }, |
425 | 425 |
426 /** | 426 /** |
427 * @param {number} lineNumber | 427 * @param {number} lineNumber |
428 */ | 428 */ |
429 setExecutionLine: function(lineNumber) | 429 setExecutionLine: function(lineNumber) |
430 { | 430 { |
431 this._executionLineNumber = lineNumber; | 431 this._executionLineNumber = lineNumber; |
432 if (this.loaded) | 432 if (this.loaded) { |
433 this.textViewer.addDecoration(lineNumber, "webkit-execution-line"); | 433 this.textViewer.addDecoration(lineNumber, "webkit-execution-line"); |
| 434 this.revealLine(this._executionLineNumber); |
| 435 } |
434 }, | 436 }, |
435 | 437 |
436 clearExecutionLine: function() | 438 clearExecutionLine: function() |
437 { | 439 { |
438 if (this.loaded) | 440 if (this.loaded) |
439 this.textViewer.removeDecoration(this._executionLineNumber, "webkit-
execution-line"); | 441 this.textViewer.removeDecoration(this._executionLineNumber, "webkit-
execution-line"); |
440 delete this._executionLineNumber; | 442 delete this._executionLineNumber; |
441 }, | 443 }, |
442 | 444 |
443 _lineNumberAfterEditing: function(lineNumber, oldRange, newRange) | 445 _lineNumberAfterEditing: function(lineNumber, oldRange, newRange) |
(...skipping 18 matching lines...) Expand all Loading... |
462 }, | 464 }, |
463 | 465 |
464 _onTextViewerContentLoaded: function() | 466 _onTextViewerContentLoaded: function() |
465 { | 467 { |
466 if (typeof this._executionLineNumber === "number") | 468 if (typeof this._executionLineNumber === "number") |
467 this.setExecutionLine(this._executionLineNumber); | 469 this.setExecutionLine(this._executionLineNumber); |
468 } | 470 } |
469 } | 471 } |
470 | 472 |
471 WebInspector.JavaScriptSourceFrame.prototype.__proto__ = WebInspector.SourceFram
e.prototype; | 473 WebInspector.JavaScriptSourceFrame.prototype.__proto__ = WebInspector.SourceFram
e.prototype; |
OLD | NEW |