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

Unified Diff: webkit/glue/devtools/js/devtools.js

Issue 100199: DevTools: Implement styles editing. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/glue/devtools/js/devtools_host_stub.js » ('j') | webkit/glue/devtools/js/dom_agent.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ }
+ });
+};
« no previous file with comments | « no previous file | webkit/glue/devtools/js/devtools_host_stub.js » ('j') | webkit/glue/devtools/js/dom_agent.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698