| Index: Source/devtools/front_end/sdk/Linkifier.js
|
| diff --git a/Source/devtools/front_end/sdk/Linkifier.js b/Source/devtools/front_end/sdk/Linkifier.js
|
| index 9e25ecc72ac3958e854af0a702440325c586047a..d289526e8e11a373e79269009a25b95ea0fc9a1e 100644
|
| --- a/Source/devtools/front_end/sdk/Linkifier.js
|
| +++ b/Source/devtools/front_end/sdk/Linkifier.js
|
| @@ -196,15 +196,14 @@ WebInspector.Linkifier.prototype = {
|
| },
|
|
|
| /**
|
| - * @param {?CSSAgent.StyleSheetId} styleSheetId
|
| * @param {!WebInspector.CSSLocation} rawLocation
|
| * @param {string=} classes
|
| * @return {?Element}
|
| */
|
| - linkifyCSSLocation: function(styleSheetId, rawLocation, classes)
|
| + linkifyCSSLocation: function(rawLocation, classes)
|
| {
|
| var anchor = this._createAnchor(classes);
|
| - var liveLocation = rawLocation.createLiveLocation(styleSheetId, this._updateAnchor.bind(this, anchor));
|
| + var liveLocation = rawLocation.createLiveLocation(this._updateAnchor.bind(this, anchor));
|
| if (!liveLocation)
|
| return null;
|
| this._liveLocationsByTarget.get(rawLocation.target()).push({anchor: anchor, location: liveLocation});
|
| @@ -212,6 +211,20 @@ WebInspector.Linkifier.prototype = {
|
| },
|
|
|
| /**
|
| + * @param {!WebInspector.CSSMedia} media
|
| + * @return {?Element}
|
| + */
|
| + linkifyMedia: function(media)
|
| + {
|
| + var location = media.rawLocation();
|
| + if (location)
|
| + return this.linkifyCSSLocation(location);
|
| +
|
| + // The "linkedStylesheet" case.
|
| + return WebInspector.linkifyResourceAsNode(media.sourceURL, undefined, "subtitle", media.sourceURL);
|
| + },
|
| +
|
| + /**
|
| * @param {string=} classes
|
| * @return {!Element}
|
| */
|
|
|