Index: webkit/glue/devtools/js/devtools.js |
=================================================================== |
--- webkit/glue/devtools/js/devtools.js (revision 14844) |
+++ webkit/glue/devtools/js/devtools.js (working copy) |
@@ -564,12 +564,27 @@ |
*/ |
WebInspector.StylePropertyTreeElement.prototype.toggleEnabled = |
function(event) { |
- var disabled = !event.target.checked; |
- var self = this; |
- devtools.tools.getDomAgent().toggleNodeStyleAsync(this.style, !disabled, |
+ var enabled = event.target.checked; |
+ devtools.tools.getDomAgent().toggleNodeStyleAsync(this.style, enabled, |
this.name, |
function() { |
WebInspector.panels.elements.sidebarPanes.styles.needsUpdate = true; |
WebInspector.panels.elements.updateStyles(true); |
}); |
}; |
+ |
+ |
+/** |
+ * @override |
+ */ |
+WebInspector.StylePropertyTreeElement.prototype.applyStyleText = function( |
+ styleText, updateInterface) { |
+ devtools.tools.getDomAgent().applyStyleTextAsync(this.style, this.name, |
yurys
2009/04/30 09:55:40
style: each param on its own line
pfeldman
2009/04/30 10:00:16
Done.
|
+ styleText, |
+ function() { |
+ if (updateInterface) { |
+ WebInspector.panels.elements.sidebarPanes.styles.needsUpdate = true; |
+ WebInspector.panels.elements.updateStyles(true); |
+ } |
+ }); |
+}; |