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

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

Issue 940373004: [DevTools] Teach MediaQueryInspector about disabling models while profiling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: simplified Created 5 years, 10 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 | Source/devtools/front_end/toolbox/MediaQueryInspector.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 17b98e0a12bb579918d84025ee94473c8e9d1a6b..179c9b545f2e72fa0181ad98b17944faf872b391 100644
--- a/Source/devtools/front_end/sdk/CSSStyleModel.js
+++ b/Source/devtools/front_end/sdk/CSSStyleModel.js
@@ -84,11 +84,11 @@ WebInspector.CSSStyleModel.prototype = {
{
this._agent.disable();
this._isEnabled = false;
- this._resetStyleSheets();
},
resumeModel: function()
{
+ this._resetStyleSheets();
this._agent.enable(this._wasEnabled.bind(this));
},
« no previous file with comments | « no previous file | Source/devtools/front_end/toolbox/MediaQueryInspector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698