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

Unified Diff: Source/devtools/front_end/sdk/CSSStyleModel.js

Issue 1153503010: Devtools: Margin resizer in overlay experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « Source/core/inspector/InspectorOverlayPage.html ('k') | Source/devtools/front_end/sdk/DOMModel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/CSSStyleModel.js
diff --git a/Source/devtools/front_end/sdk/CSSStyleModel.js b/Source/devtools/front_end/sdk/CSSStyleModel.js
index df5827160d332857a26aca705825db12c8a9f9c3..9d5bc4f5c6505a8332e19265c90e0a4e8d6f15f5 100644
--- a/Source/devtools/front_end/sdk/CSSStyleModel.js
+++ b/Source/devtools/front_end/sdk/CSSStyleModel.js
@@ -617,6 +617,14 @@ WebInspector.CSSStyleModel.prototype = {
}
},
+ _cssPropertyEdited: function(nodeId, newValue)
+ {
+ console.log("cssProp " + newValue + " " + nodeId);
+ var node = this._domModel.nodeForId(nodeId);
+ if (node)
+ node.setAttributeValue("style", "margin-left: " + newValue + "px");
+ },
+
__proto__: WebInspector.SDKModel.prototype
}
@@ -1786,6 +1794,11 @@ WebInspector.CSSDispatcher.prototype = {
{
this._cssModel._styleSheetRemoved(id);
},
+
+ cssPropertyEdited: function(nodeId, newValue)
+ {
+ this._cssModel._cssPropertyEdited(nodeId, newValue);
+ },
}
/**
« no previous file with comments | « Source/core/inspector/InspectorOverlayPage.html ('k') | Source/devtools/front_end/sdk/DOMModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698