| 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..ef8b82740554efaeffa7bf63031a21aed5d5cf31 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
|
| @@ -39,8 +39,9 @@ WebInspector.LinkifierFormatter.prototype = {
|
| /**
|
| * @param {!Element} anchor
|
| * @param {!WebInspector.UILocation} uiLocation
|
| + * @param {boolean} isBlackboxed
|
| */
|
| - formatLiveAnchor: function(anchor, uiLocation) { }
|
| + formatLiveAnchor: function(anchor, uiLocation, isBlackboxed) { }
|
| }
|
|
|
| /**
|
| @@ -202,16 +203,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,12 +282,15 @@ WebInspector.Linkifier.prototype = {
|
|
|
| /**
|
| * @param {!Element} anchor
|
| - * @param {!WebInspector.UILocation} uiLocation
|
| + * @param {!WebInspector.LiveLocation} liveLocation
|
| */
|
| - _updateAnchor: function(anchor, uiLocation)
|
| + _updateAnchor: function(anchor, liveLocation)
|
| {
|
| + var uiLocation = liveLocation.uiLocation();
|
| + if (!uiLocation)
|
| + return;
|
| anchor[WebInspector.Linkifier._uiLocationSymbol] = uiLocation;
|
| - this._formatter.formatLiveAnchor(anchor, uiLocation);
|
| + this._formatter.formatLiveAnchor(anchor, uiLocation, liveLocation.isBlackboxed());
|
| }
|
| }
|
|
|
| @@ -323,8 +318,9 @@ WebInspector.Linkifier.DefaultFormatter.prototype = {
|
| * @override
|
| * @param {!Element} anchor
|
| * @param {!WebInspector.UILocation} uiLocation
|
| + * @param {boolean} isBlackboxed
|
| */
|
| - formatLiveAnchor: function(anchor, uiLocation)
|
| + formatLiveAnchor: function(anchor, uiLocation, isBlackboxed)
|
| {
|
| var text = uiLocation.linkText();
|
| text = text.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g, "$1\u2026");
|
| @@ -336,6 +332,8 @@ WebInspector.Linkifier.DefaultFormatter.prototype = {
|
| if (typeof uiLocation.lineNumber === "number")
|
| titleText += ":" + (uiLocation.lineNumber + 1);
|
| anchor.title = titleText;
|
| +
|
| + anchor.classList.toggle("webkit-html-blackbox-link", isBlackboxed);
|
| }
|
| }
|
|
|
| @@ -355,10 +353,11 @@ WebInspector.Linkifier.DefaultCSSFormatter.prototype = {
|
| * @override
|
| * @param {!Element} anchor
|
| * @param {!WebInspector.UILocation} uiLocation
|
| + * @param {boolean} isBlackboxed
|
| */
|
| - formatLiveAnchor: function(anchor, uiLocation)
|
| + formatLiveAnchor: function(anchor, uiLocation, isBlackboxed)
|
| {
|
| - WebInspector.Linkifier.DefaultFormatter.prototype.formatLiveAnchor.call(this, anchor, uiLocation);
|
| + WebInspector.Linkifier.DefaultFormatter.prototype.formatLiveAnchor.call(this, anchor, uiLocation, isBlackboxed);
|
| anchor.classList.add("webkit-html-resource-link");
|
| anchor.setAttribute("data-uncopyable", anchor.textContent);
|
| anchor.textContent = "";
|
|
|