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

Unified Diff: Source/devtools/front_end/elements/EventListenersSidebarPane.js

Issue 404953004: DevTools: Refactor linkifyRawLocation to use fallback url (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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/elements/EventListenersSidebarPane.js
diff --git a/Source/devtools/front_end/elements/EventListenersSidebarPane.js b/Source/devtools/front_end/elements/EventListenersSidebarPane.js
index a639a53f2ffc2fbf47c437329ae2b1655d3ab278..7ae60ca695509e5bb97aff98b5426dfd3b487639 100644
--- a/Source/devtools/front_end/elements/EventListenersSidebarPane.js
+++ b/Source/devtools/front_end/elements/EventListenersSidebarPane.js
@@ -267,7 +267,9 @@ WebInspector.EventListenerBar.prototype = {
_setFunctionSubtitle: function(linkifier)
{
this.subtitleElement.removeChildren();
- this.subtitleElement.appendChild(linkifier.linkifyRawLocation(this._eventListener.location()));
+ var location = this._eventListener.location();
+ var link = linkifier.linkifyLocationByScriptId(location.target(), location.scriptId, this._eventListener.sourceName(), location.lineNumber, location.columnNumber);
+ this.subtitleElement.appendChild(link);
},
__proto__: WebInspector.ObjectPropertiesSection.prototype

Powered by Google App Engine
This is Rietveld 408576698