| Index: third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
|
| index 71505a19be4709a5692643005a1d3615cc06d5c7..3104c01653305aefc7c5a61a58189d34ebc16a43 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
|
| @@ -3107,16 +3107,16 @@ WebInspector.StylesSidebarPropertyRenderer.prototype = {
|
| */
|
| _processURL: function(url)
|
| {
|
| - var hrefUrl = url;
|
| - var match = hrefUrl.match(/['"]?([^'"]+)/);
|
| - if (match)
|
| - hrefUrl = match[1];
|
| + var isQuoted = /^'.*'$/.test(url) || /^".*"$/.test(url);
|
| + if (isQuoted)
|
| + url = url.substring(1, url.length - 1);
|
| var container = createDocumentFragment();
|
| container.createTextChild("url(");
|
| + var hrefUrl = null;
|
| if (this._rule && this._rule.resourceURL())
|
| - hrefUrl = WebInspector.ParsedURL.completeURL(this._rule.resourceURL(), hrefUrl);
|
| + hrefUrl = WebInspector.ParsedURL.completeURL(this._rule.resourceURL(), url);
|
| else if (this._node)
|
| - hrefUrl = this._node.resolveURL(hrefUrl);
|
| + hrefUrl = this._node.resolveURL(url);
|
| var hasResource = hrefUrl && !!WebInspector.resourceForURL(hrefUrl);
|
| // FIXME: WebInspector.linkifyURLAsNode() should really use baseURI.
|
| container.appendChild(WebInspector.linkifyURLAsNode(hrefUrl || url, url, undefined, !hasResource));
|
|
|