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

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

Issue 441873010: DevTools: [SSP] Implement adding new rule in user stylesheet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix compilation error Created 6 years, 4 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/devtools/front_end/elements/StylesSidebarPane.js ('k') | Source/devtools/front_end/sidebarPane.css » ('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 fdb8e1d0b39ff1c176150cb18d2478c4481d28b1..09e776636a7f5aa605d2bdfcbe95488d799141dc 100644
--- a/Source/devtools/front_end/sdk/CSSStyleModel.js
+++ b/Source/devtools/front_end/sdk/CSSStyleModel.js
@@ -361,14 +361,15 @@ WebInspector.CSSStyleModel.prototype = {
/**
* @param {!CSSAgent.StyleSheetId} styleSheetId
* @param {!WebInspector.DOMNode} node
- * @param {string} selector
+ * @param {string} ruleText
+ * @param {!WebInspector.TextRange} ruleLocation
* @param {function(!WebInspector.CSSRule)} successCallback
* @param {function()} failureCallback
*/
- addRule: function(styleSheetId, node, selector, successCallback, failureCallback)
+ addRule: function(styleSheetId, node, ruleText, ruleLocation, successCallback, failureCallback)
{
this._pendingCommandsMajorState.push(true);
- this._agent.addRule(styleSheetId, selector, callback.bind(this));
+ this._agent.addRule(styleSheetId, ruleText, ruleLocation, callback.bind(this));
/**
* @param {?Protocol.Error} error
@@ -1499,7 +1500,7 @@ WebInspector.CSSStyleSheetHeader.prototype = {
/**
* @override
- * @param {function(?string)} callback
+ * @param {function(string)} callback
*/
requestContent: function(callback)
{
« no previous file with comments | « Source/devtools/front_end/elements/StylesSidebarPane.js ('k') | Source/devtools/front_end/sidebarPane.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698