Title: [97777] trunk/Source/WebCore
- Revision
- 97777
- Author
- [email protected]
- Date
- 2011-10-18 11:06:01 -0700 (Tue, 18 Oct 2011)
Log Message
Web Inspector: ScriptsPanel's should use similar logic to decide whether it could show an anchor location and actually showing it.
https://bugs.webkit.org/show_bug.cgi?id=70322
Reviewed by Pavel Feldman.
* inspector/front-end/ScriptsPanel.js:
(WebInspector.ScriptsPanel.prototype.canShowAnchorLocation):
(WebInspector.ScriptsPanel.prototype._showSourceLine):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (97776 => 97777)
--- trunk/Source/WebCore/ChangeLog 2011-10-18 17:56:33 UTC (rev 97776)
+++ trunk/Source/WebCore/ChangeLog 2011-10-18 18:06:01 UTC (rev 97777)
@@ -1,3 +1,14 @@
+2011-10-18 Vsevolod Vlasov <[email protected]>
+
+ Web Inspector: ScriptsPanel's should use similar logic to decide whether it could show an anchor location and actually showing it.
+ https://bugs.webkit.org/show_bug.cgi?id=70322
+
+ Reviewed by Pavel Feldman.
+
+ * inspector/front-end/ScriptsPanel.js:
+ (WebInspector.ScriptsPanel.prototype.canShowAnchorLocation):
+ (WebInspector.ScriptsPanel.prototype._showSourceLine):
+
2011-10-18 Eric Carlson <[email protected]>
Use the new cached cue loader
Modified: trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js (97776 => 97777)
--- trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js 2011-10-18 17:56:33 UTC (rev 97776)
+++ trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js 2011-10-18 18:06:01 UTC (rev 97777)
@@ -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)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes