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

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

Issue 267393003: DevTools: Load document (html) content from disk cache in page agent enabling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 fdc408f98d46e62a455f1b57f69de8d687b91153..1977a72d246287ac3000a08d70f33a5384928b59 100644
--- a/Source/devtools/front_end/sdk/CSSStyleModel.js
+++ b/Source/devtools/front_end/sdk/CSSStyleModel.js
@@ -44,7 +44,7 @@ WebInspector.CSSStyleModel = function(target)
this._domModel.addEventListener(WebInspector.DOMModel.Events.UndoRedoCompleted, this._undoRedoCompleted, this);
target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.MainFrameCreatedOrNavigated, this._mainFrameCreatedOrNavigated, this);
target.registerCSSDispatcher(new WebInspector.CSSDispatcher(this));
- this._agent.enable(this._wasEnabled.bind(this));
+ this._agent.enable();
this._resetStyleSheets();
}
@@ -66,7 +66,6 @@ WebInspector.CSSStyleModel.parseRuleMatchArrayPayload = function(cssModel, match
}
WebInspector.CSSStyleModel.Events = {
- ModelWasEnabled: "ModelWasEnabled",
StyleSheetAdded: "StyleSheetAdded",
StyleSheetChanged: "StyleSheetChanged",
StyleSheetRemoved: "StyleSheetRemoved",
@@ -77,20 +76,6 @@ WebInspector.CSSStyleModel.MediaTypes = ["all", "braille", "embossed", "handheld
WebInspector.CSSStyleModel.prototype = {
/**
- * @return {boolean}
- */
- isEnabled: function()
- {
- return this._isEnabled;
- },
-
- _wasEnabled: function()
- {
- this._isEnabled = true;
- this.dispatchEventToListeners(WebInspector.CSSStyleModel.Events.ModelWasEnabled);
- },
-
- /**
* @param {!DOMAgent.NodeId} nodeId
* @param {boolean} needPseudo
* @param {boolean} needInherited

Powered by Google App Engine
This is Rietveld 408576698