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 3042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3053 * @return {!Element} | 3053 * @return {!Element} |
3054 */ | 3054 */ |
3055 renderValue: function() | 3055 renderValue: function() |
3056 { | 3056 { |
3057 var valueElement = createElement("span"); | 3057 var valueElement = createElement("span"); |
3058 valueElement.className = "value"; | 3058 valueElement.className = "value"; |
3059 if (!this._propertyValue) | 3059 if (!this._propertyValue) |
3060 return valueElement; | 3060 return valueElement; |
3061 | 3061 |
3062 if (this._shadowHandler && (this._propertyName === "box-shadow" || this.
_propertyName === "text-shadow" || this._propertyName === "-webkit-box-shadow") | 3062 if (this._shadowHandler && (this._propertyName === "box-shadow" || this.
_propertyName === "text-shadow" || this._propertyName === "-webkit-box-shadow") |
3063 && !WebInspector.CSSMetadata.VariableRegex.test(this._propertyVa
lue) && Runtime.experiments.isEnabled("shadowEditor")) { | 3063 && !WebInspector.CSSMetadata.VariableRegex.test(this._propertyVa
lue)) { |
3064 valueElement.appendChild(this._shadowHandler(this._propertyValue, th
is._propertyName)); | 3064 valueElement.appendChild(this._shadowHandler(this._propertyValue, th
is._propertyName)); |
3065 valueElement.normalize(); | 3065 valueElement.normalize(); |
3066 return valueElement; | 3066 return valueElement; |
3067 } | 3067 } |
3068 | 3068 |
3069 var regexes = [WebInspector.CSSMetadata.VariableRegex, WebInspector.CSSM
etadata.URLRegex]; | 3069 var regexes = [WebInspector.CSSMetadata.VariableRegex, WebInspector.CSSM
etadata.URLRegex]; |
3070 var processors = [createTextNode, this._processURL.bind(this)]; | 3070 var processors = [createTextNode, this._processURL.bind(this)]; |
3071 if (this._bezierHandler && WebInspector.cssMetadata().isBezierAwarePrope
rty(this._propertyName)) { | 3071 if (this._bezierHandler && WebInspector.cssMetadata().isBezierAwarePrope
rty(this._propertyName)) { |
3072 regexes.push(WebInspector.Geometry.CubicBezier.Regex); | 3072 regexes.push(WebInspector.Geometry.CubicBezier.Regex); |
3073 processors.push(this._bezierHandler); | 3073 processors.push(this._bezierHandler); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3152 | 3152 |
3153 /** | 3153 /** |
3154 * @override | 3154 * @override |
3155 * @return {!WebInspector.ToolbarItem} | 3155 * @return {!WebInspector.ToolbarItem} |
3156 */ | 3156 */ |
3157 item: function() | 3157 item: function() |
3158 { | 3158 { |
3159 return this._button; | 3159 return this._button; |
3160 } | 3160 } |
3161 } | 3161 } |
OLD | NEW |