Index: Source/devtools/front_end/ScriptsPanel.js |
diff --git a/Source/devtools/front_end/ScriptsPanel.js b/Source/devtools/front_end/ScriptsPanel.js |
index cd3a5e575ed7da4374b5973f493be0576d4b6cd3..99a0088bc5fc801be76d111769f80ac1fa4ea2bb 100755 |
--- a/Source/devtools/front_end/ScriptsPanel.js |
+++ b/Source/devtools/front_end/ScriptsPanel.js |
@@ -386,7 +386,7 @@ WebInspector.ScriptsPanel.prototype = { |
showAnchorLocation: function(anchor) |
{ |
- this._showSourceLine(anchor.uiSourceCode, anchor.lineNumber); |
+ this._showSourceLine(anchor.uiSourceCode, anchor.lineNumber, !!anchor.silent); |
}, |
/** |
@@ -401,13 +401,16 @@ WebInspector.ScriptsPanel.prototype = { |
/** |
* @param {WebInspector.UISourceCode} uiSourceCode |
* @param {number=} lineNumber |
+ * @param {boolean=} silent |
*/ |
- _showSourceLine: function(uiSourceCode, lineNumber) |
+ _showSourceLine: function(uiSourceCode, lineNumber, silent) |
pfeldman
2013/04/27 08:05:45
silent -> omitFocus
Dmitry Zvorygin
2013/04/29 16:02:35
Done.
|
{ |
var sourceFrame = this._showFile(uiSourceCode); |
if (typeof lineNumber === "number") |
sourceFrame.highlightLine(lineNumber); |
- sourceFrame.focus(); |
+ |
+ if (!silent) |
+ sourceFrame.focus(); |
WebInspector.notifications.dispatchEventToListeners(WebInspector.UserMetrics.UserAction, { |
action: WebInspector.UserMetrics.UserActionNames.OpenSourceLink, |