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 2959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2970 */ | 2970 */ |
2971 WebInspector.StylesSidebarPropertyRenderer = function(rule, node, name, value) | 2971 WebInspector.StylesSidebarPropertyRenderer = function(rule, node, name, value) |
2972 { | 2972 { |
2973 this._rule = rule; | 2973 this._rule = rule; |
2974 this._node = node; | 2974 this._node = node; |
2975 this._propertyName = name; | 2975 this._propertyName = name; |
2976 this._propertyValue = value; | 2976 this._propertyValue = value; |
2977 } | 2977 } |
2978 | 2978 |
2979 WebInspector.StylesSidebarPropertyRenderer._variableRegex = /(var\(--.*?\))/g; | 2979 WebInspector.StylesSidebarPropertyRenderer._variableRegex = /(var\(--.*?\))/g; |
2980 WebInspector.StylesSidebarPropertyRenderer._colorRegex = /((?:rgb|hsl)a?\([^)]+\
)|#[0-9a-fA-F]{8}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3,4}|\b\w+\b(?!-))/g; | 2980 WebInspector.StylesSidebarPropertyRenderer._colorRegex = /((?:rgb|hsl)a?\([^)]+\
)|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|\b\w+\b(?!-))/g; |
2981 WebInspector.StylesSidebarPropertyRenderer._bezierRegex = /((cubic-bezier\([^)]+
\))|\b(linear|ease-in-out|ease-in|ease-out|ease)\b)/g; | 2981 WebInspector.StylesSidebarPropertyRenderer._bezierRegex = /((cubic-bezier\([^)]+
\))|\b(linear|ease-in-out|ease-in|ease-out|ease)\b)/g; |
2982 | 2982 |
2983 /** | 2983 /** |
2984 * @param {string} value | 2984 * @param {string} value |
2985 * @return {!RegExp} | 2985 * @return {!RegExp} |
2986 */ | 2986 */ |
2987 WebInspector.StylesSidebarPropertyRenderer._urlRegex = function(value) | 2987 WebInspector.StylesSidebarPropertyRenderer._urlRegex = function(value) |
2988 { | 2988 { |
2989 // Heuristically choose between single-quoted, double-quoted or plain URL re
gex. | 2989 // Heuristically choose between single-quoted, double-quoted or plain URL re
gex. |
2990 if (/url\(\s*'.*\s*'\s*\)/.test(value)) | 2990 if (/url\(\s*'.*\s*'\s*\)/.test(value)) |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3111 | 3111 |
3112 /** | 3112 /** |
3113 * @override | 3113 * @override |
3114 * @return {!WebInspector.ToolbarItem} | 3114 * @return {!WebInspector.ToolbarItem} |
3115 */ | 3115 */ |
3116 item: function() | 3116 item: function() |
3117 { | 3117 { |
3118 return this._button; | 3118 return this._button; |
3119 } | 3119 } |
3120 } | 3120 } |
OLD | NEW |