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

Side by Side Diff: Source/WebCore/inspector/front-end/JavaScriptSourceFrame.js

Issue 9950021: Merge 112661 - Web Inspector: [Regression] Execution line is not revealed after pretty print. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 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 | no next file » | 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) 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
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
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;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698