| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 2998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3009 var isQuoted = /^'.*'$/.test(url) || /^".*"$/.test(url); | 3009 var isQuoted = /^'.*'$/.test(url) || /^".*"$/.test(url); |
| 3010 if (isQuoted) | 3010 if (isQuoted) |
| 3011 url = url.substring(1, url.length - 1); | 3011 url = url.substring(1, url.length - 1); |
| 3012 var container = createDocumentFragment(); | 3012 var container = createDocumentFragment(); |
| 3013 container.createTextChild('url('); | 3013 container.createTextChild('url('); |
| 3014 var hrefUrl = null; | 3014 var hrefUrl = null; |
| 3015 if (this._rule && this._rule.resourceURL()) | 3015 if (this._rule && this._rule.resourceURL()) |
| 3016 hrefUrl = Common.ParsedURL.completeURL(this._rule.resourceURL(), url); | 3016 hrefUrl = Common.ParsedURL.completeURL(this._rule.resourceURL(), url); |
| 3017 else if (this._node) | 3017 else if (this._node) |
| 3018 hrefUrl = this._node.resolveURL(url); | 3018 hrefUrl = this._node.resolveURL(url); |
| 3019 container.appendChild(Components.Linkifier.linkifyURLAsNode(hrefUrl || url,
url)); | 3019 container.appendChild(Components.Linkifier.linkifyURL(hrefUrl || url, url)); |
| 3020 container.createTextChild(')'); | 3020 container.createTextChild(')'); |
| 3021 return container; | 3021 return container; |
| 3022 } | 3022 } |
| 3023 }; | 3023 }; |
| 3024 | 3024 |
| 3025 /** | 3025 /** |
| 3026 * @implements {UI.ToolbarItem.Provider} | 3026 * @implements {UI.ToolbarItem.Provider} |
| 3027 * @unrestricted | 3027 * @unrestricted |
| 3028 */ | 3028 */ |
| 3029 Elements.StylesSidebarPane.ButtonProvider = class { | 3029 Elements.StylesSidebarPane.ButtonProvider = class { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 3059 } | 3059 } |
| 3060 | 3060 |
| 3061 /** | 3061 /** |
| 3062 * @override | 3062 * @override |
| 3063 * @return {!UI.ToolbarItem} | 3063 * @return {!UI.ToolbarItem} |
| 3064 */ | 3064 */ |
| 3065 item() { | 3065 item() { |
| 3066 return this._button; | 3066 return this._button; |
| 3067 } | 3067 } |
| 3068 }; | 3068 }; |
| OLD | NEW |