Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1510)

Side by Side Diff: Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 1221663002: DevTools: [SSP] force StylesSidebarPane refresh on undo/redo command happens. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/elements/ElementsPanel.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/elements/ElementsPanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698