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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // IE hack. | 130 // IE hack. |
131 if (value.endsWith("\9")) | 131 if (value.endsWith("\9")) |
132 return true; | 132 return true; |
133 if (hasUnknownVendorPrefix(value)) | 133 if (hasUnknownVendorPrefix(value)) |
134 return true; | 134 return true; |
135 | 135 |
136 return false; | 136 return false; |
137 } | 137 } |
138 | 138 |
139 WebInspector.StylesSidebarPane.prototype = { | 139 WebInspector.StylesSidebarPane.prototype = { |
| 140 onUndoOrRedoHappened: function() |
| 141 { |
| 142 this.setNode(this.node()); |
| 143 }, |
| 144 |
140 /** | 145 /** |
141 * @param {!WebInspector.Event} event | 146 * @param {!WebInspector.Event} event |
142 */ | 147 */ |
143 _onAddButtonLongClick: function(event) | 148 _onAddButtonLongClick: function(event) |
144 { | 149 { |
145 var cssModel = this.cssModel(); | 150 var cssModel = this.cssModel(); |
146 if (!cssModel) | 151 if (!cssModel) |
147 return; | 152 return; |
148 var headers = cssModel.styleSheetHeaders().filter(styleSheetResourceHead
er); | 153 var headers = cssModel.styleSheetHeaders().filter(styleSheetResourceHead
er); |
149 | 154 |
(...skipping 3082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3232 | 3237 |
3233 /** | 3238 /** |
3234 * @override | 3239 * @override |
3235 * @return {?WebInspector.ToolbarItem} | 3240 * @return {?WebInspector.ToolbarItem} |
3236 */ | 3241 */ |
3237 item: function() | 3242 item: function() |
3238 { | 3243 { |
3239 return this._button; | 3244 return this._button; |
3240 } | 3245 } |
3241 } | 3246 } |
OLD | NEW |