| 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 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2076 if (!color) | 2076 if (!color) |
| 2077 return createTextNode(text); | 2077 return createTextNode(text); |
| 2078 | 2078 |
| 2079 if (!this._styleRule.editable()) { | 2079 if (!this._styleRule.editable()) { |
| 2080 var swatch = WebInspector.ColorSwatch.create(); | 2080 var swatch = WebInspector.ColorSwatch.create(); |
| 2081 swatch.setColorText(text); | 2081 swatch.setColorText(text); |
| 2082 return swatch; | 2082 return swatch; |
| 2083 } | 2083 } |
| 2084 | 2084 |
| 2085 var stylesPopoverHelper = this._parentPane._stylesPopoverHelper; | 2085 var stylesPopoverHelper = this._parentPane._stylesPopoverHelper; |
| 2086 return new WebInspector.ColowSwatchPopoverIcon(this, stylesPopoverHelper
, text).element(); | 2086 return new WebInspector.ColorSwatchPopoverIcon(this, stylesPopoverHelper
, text).element(); |
| 2087 }, | 2087 }, |
| 2088 | 2088 |
| 2089 /** | 2089 /** |
| 2090 * @return {string} | 2090 * @return {string} |
| 2091 */ | 2091 */ |
| 2092 renderedPropertyText: function() | 2092 renderedPropertyText: function() |
| 2093 { | 2093 { |
| 2094 return this.nameElement.textContent + ": " + this.valueElement.textConte
nt; | 2094 return this.nameElement.textContent + ": " + this.valueElement.textConte
nt; |
| 2095 }, | 2095 }, |
| 2096 | 2096 |
| (...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3250 | 3250 |
| 3251 /** | 3251 /** |
| 3252 * @override | 3252 * @override |
| 3253 * @return {?WebInspector.ToolbarItem} | 3253 * @return {?WebInspector.ToolbarItem} |
| 3254 */ | 3254 */ |
| 3255 item: function() | 3255 item: function() |
| 3256 { | 3256 { |
| 3257 return this._button; | 3257 return this._button; |
| 3258 } | 3258 } |
| 3259 } | 3259 } |
| OLD | NEW |