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

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

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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
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 bcf82456e5153bc7baf40377e02c8e001ed263e0..a393e0eb5ca71c0c8eb807fefdac44fa14170cf1 100644
--- a/Source/devtools/front_end/sdk/CSSStyleModel.js
+++ b/Source/devtools/front_end/sdk/CSSStyleModel.js
@@ -692,15 +692,16 @@ WebInspector.CSSStyleDeclaration = function(cssModel, payload)
}
/**
+ * @param {!WebInspector.Target} target
* @return {!WebInspector.CSSStyleDeclaration}
*/
-WebInspector.CSSStyleDeclaration.createDummyStyle = function()
+WebInspector.CSSStyleDeclaration.createDummyStyle = function(target)
{
var dummyPayload = {
shorthandEntries: [],
cssProperties: []
};
- return new WebInspector.CSSStyleDeclaration(WebInspector.cssModel, dummyPayload);
+ return new WebInspector.CSSStyleDeclaration(target.cssModel, dummyPayload);
}
/**
@@ -1818,8 +1819,3 @@ WebInspector.CSSStyleModel.ComputedStyleLoader.prototype = {
}
}
}
-
-/**
- * @type {!WebInspector.CSSStyleModel}
- */
-WebInspector.cssModel;
« no previous file with comments | « Source/devtools/front_end/sdk/CPUProfilerModel.js ('k') | Source/devtools/front_end/sdk/ContentProviders.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698