| Index: third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js b/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
|
| index f7804d5f9db3f8d8b37512ad054f2f7183ad390f..48982414b90ab72157b6156eea4790d7991e7c29 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
|
| @@ -202,16 +202,7 @@ WebInspector.Linkifier.prototype = {
|
| // FIXME(62725): console stack trace line/column numbers are one-based.
|
| var lineNumber = callFrame.lineNumber ? callFrame.lineNumber - 1 : 0;
|
| var columnNumber = callFrame.columnNumber ? callFrame.columnNumber - 1 : 0;
|
| - var anchor = this.linkifyScriptLocation(target, callFrame.scriptId, callFrame.url, lineNumber, columnNumber, classes);
|
| - var debuggerModel = WebInspector.DebuggerModel.fromTarget(target);
|
| - var location = debuggerModel && debuggerModel.createRawLocationByScriptId(callFrame.scriptId, callFrame.lineNumber, callFrame.columnNumber);
|
| - var blackboxed = location ?
|
| - WebInspector.blackboxManager.isBlackboxedRawLocation(location) :
|
| - WebInspector.blackboxManager.isBlackboxedURL(callFrame.url);
|
| - if (blackboxed)
|
| - anchor.classList.add("webkit-html-blackbox-link");
|
| -
|
| - return anchor;
|
| + return this.linkifyScriptLocation(target, callFrame.scriptId, callFrame.url, lineNumber, columnNumber, classes);
|
| },
|
|
|
| /**
|
| @@ -290,10 +281,11 @@ WebInspector.Linkifier.prototype = {
|
|
|
| /**
|
| * @param {!Element} anchor
|
| - * @param {!WebInspector.UILocation} uiLocation
|
| + * @param {!WebInspector.LiveLocation} liveLocation
|
| */
|
| - _updateAnchor: function(anchor, uiLocation)
|
| + _updateAnchor: function(anchor, liveLocation)
|
| {
|
| + var uiLocation = /** @type {!WebInspector.UILocation} */(liveLocation.uiLocation);
|
| anchor[WebInspector.Linkifier._uiLocationSymbol] = uiLocation;
|
| this._formatter.formatLiveAnchor(anchor, uiLocation);
|
| }
|
| @@ -336,6 +328,11 @@ WebInspector.Linkifier.DefaultFormatter.prototype = {
|
| if (typeof uiLocation.lineNumber === "number")
|
| titleText += ":" + (uiLocation.lineNumber + 1);
|
| anchor.title = titleText;
|
| +
|
| + if (uiLocation.isBlackboxed)
|
| + anchor.classList.add("webkit-html-blackbox-link");
|
| + else
|
| + anchor.classList.remove("webkit-html-blackbox-link");
|
| }
|
| }
|
|
|
|
|