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

Unified Diff: Source/WebCore/inspector/front-end/ScriptsPanel.js

Issue 8373002: Merge 97777 - Web Inspector: ScriptsPanel's should use similar logic to decide whether it could s... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/front-end/ScriptsPanel.js
===================================================================
--- Source/WebCore/inspector/front-end/ScriptsPanel.js (revision 98107)
+++ Source/WebCore/inspector/front-end/ScriptsPanel.js (working copy)
@@ -632,7 +632,7 @@
canShowAnchorLocation: function(anchor)
{
- return this._debuggerEnabled && WebInspector.debuggerModel.scriptsForURL(anchor.href).length;
+ return this._debuggerEnabled && anchor.uiSourceCode;
},
showAnchorLocation: function(anchor)
@@ -643,7 +643,8 @@
_showSourceLine: function(uiSourceCode, lineNumber)
{
var sourceFrame = this._showSourceFrameAndAddToHistory(uiSourceCode);
- sourceFrame.highlightLine(lineNumber);
+ if (lineNumber)
+ sourceFrame.highlightLine(lineNumber);
},
_showSourceFrameAndAddToHistory: function(uiSourceCode)
« 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