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

Unified Diff: Source/devtools/front_end/CodeMirrorTextEditor.js

Issue 203433002: DevTools: Reuse _showSourceLocation for execution line changes handling in sources panel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/SourceFrame.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/CodeMirrorTextEditor.js
diff --git a/Source/devtools/front_end/CodeMirrorTextEditor.js b/Source/devtools/front_end/CodeMirrorTextEditor.js
index 8ad3b9edfe44f19f80e15f0ddef94cedfb7b8300..1b00b43af59ac75e1dd7b639ab958f9354143fac 100644
--- a/Source/devtools/front_end/CodeMirrorTextEditor.js
+++ b/Source/devtools/front_end/CodeMirrorTextEditor.js
@@ -760,6 +760,8 @@ WebInspector.CodeMirrorTextEditor.prototype = {
setExecutionLine: function(lineNumber)
{
this._executionLine = this._codeMirror.getLineHandle(lineNumber);
+ if (!this._executionLine)
lushnikov 2014/03/18 13:22:04 what is this needed for?
+ return;
this._codeMirror.addLineClass(this._executionLine, "wrap", "cm-execution-line");
},
« no previous file with comments | « no previous file | Source/devtools/front_end/SourceFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698