Chromium Code Reviews| 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..64c41553ec7a2acf51c184ed732dbed144079c83 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js |
| @@ -3107,12 +3107,11 @@ WebInspector.StylesSidebarPropertyRenderer.prototype = { |
| */ |
| _processURL: function(url) |
| { |
| - var hrefUrl = url; |
| - var match = hrefUrl.match(/['"]?([^'"]+)/); |
| - if (match) |
| - hrefUrl = match[1]; |
| + if (url.length >= 2 && (url[0] == "\"" && url[url.length - 1] == "\"") || (url[0] == "'" && url[url.length - 1] == "'")) |
|
lushnikov
2016/05/25 18:27:11
1. ===
2. You can use template strings to avoid qu
dgozman
2016/05/25 20:19:19
Done.
|
| + url = url.substring(1, url.length - 1); |
| var container = createDocumentFragment(); |
| container.createTextChild("url("); |
| + var hrefUrl = url; |
| if (this._rule && this._rule.resourceURL()) |
| hrefUrl = WebInspector.ParsedURL.completeURL(this._rule.resourceURL(), hrefUrl); |
| else if (this._node) |