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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js

Issue 1480693002: Devtools: Fix SASS mappings with workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js
index 7942d197511f8ec2046d3722e5c09be2ab3712ea..f2f1d1fb98747a2c758d793cbd030e1d90e41401 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js
@@ -32,19 +32,17 @@
* @constructor
* @implements {WebInspector.CSSSourceMapping}
* @param {!WebInspector.CSSStyleModel} cssModel
- * @param {!WebInspector.Workspace} workspace
* @param {!WebInspector.NetworkMapping} networkMapping
* @param {!WebInspector.NetworkProject} networkProject
*/
-WebInspector.SASSSourceMapping = function(cssModel, workspace, networkMapping, networkProject)
+WebInspector.SASSSourceMapping = function(cssModel, networkMapping, networkProject)
{
this._cssModel = cssModel;
- this._workspace = workspace;
this._networkProject = networkProject;
this._reset();
WebInspector.moduleSetting("cssSourceMapsEnabled").addChangeListener(this._toggleSourceMapSupport, this);
this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetChanged, this._styleSheetChanged, this);
- this._workspace.addEventListener(WebInspector.Workspace.Events.ProjectRemoved, this._reset, this);
+ cssModel.target().resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.MainFrameNavigated, this._reset, this);
this._networkMapping = networkMapping;
}
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698