Index: webkit/glue/devtools/js/devtools.js |
=================================================================== |
--- webkit/glue/devtools/js/devtools.js (revision 14723) |
+++ webkit/glue/devtools/js/devtools.js (working copy) |
@@ -549,7 +549,7 @@ |
/** |
* Callback function used with the resolveChildren. |
*/ |
- WebInspector.ScopeChainSidebarPane.TreeElement.prototype.didResolveChildren_ = |
+WebInspector.ScopeChainSidebarPane.TreeElement.prototype.didResolveChildren_ = |
function(object) { |
this.removeChildren(); |
@@ -558,3 +558,18 @@ |
this.appendChild(new constructor(object, name)); |
} |
}; |
+ |
+ |
+/** |
+ * @override |
+ */ |
+WebInspector.StylePropertyTreeElement.prototype.toggleEnabled = |
+ function(event) { |
+ var disabled = !event.target.checked; |
+ var self = this; |
+ devtools.tools.getDomAgent().toggleNodeStyleAsync(this.style, !disabled, |
+ this.name, |
+ function() { |
+ WebInspector.panels.elements.updateStyles(true); |
+ }); |
+}; |