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

Unified Diff: Source/devtools/front_end/SourcesPanel.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
Index: Source/devtools/front_end/SourcesPanel.js
diff --git a/Source/devtools/front_end/SourcesPanel.js b/Source/devtools/front_end/SourcesPanel.js
index 3075bcc64f4c1fa3f445e20ac3422b02640b886c..dd168c9365e01bda9b51ca4d88c7ce37b281cdaa 100644
--- a/Source/devtools/front_end/SourcesPanel.js
+++ b/Source/devtools/front_end/SourcesPanel.js
@@ -724,14 +724,7 @@ WebInspector.SourcesPanel.prototype = {
if (this._skipExecutionLineRevealing)
return;
this._skipExecutionLineRevealing = true;
-
- var sourceFrame = this._showFile(uiSourceCode);
- sourceFrame.revealLine(uiLocation.lineNumber);
- this._historyManager.pushNewState();
-
- if (sourceFrame.canEditSource())
- sourceFrame.setSelection(WebInspector.TextRange.createFromLocation(uiLocation.lineNumber, 0));
- sourceFrame.focus();
+ this._showSourceLocation(uiSourceCode, uiLocation.lineNumber, 0);
},
_callFrameSelected: function(event)

Powered by Google App Engine
This is Rietveld 408576698