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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.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 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @implements {WebInspector.TargetManager.Observer} 7 * @implements {WebInspector.TargetManager.Observer}
8 * @param {!WebInspector.TargetManager} targetManager 8 * @param {!WebInspector.TargetManager} targetManager
9 * @param {!WebInspector.Workspace} workspace 9 * @param {!WebInspector.Workspace} workspace
10 * @param {!WebInspector.NetworkMapping} networkMapping 10 * @param {!WebInspector.NetworkMapping} networkMapping
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 /** 173 /**
174 * @constructor 174 * @constructor
175 * @param {!WebInspector.CSSStyleModel} cssModel 175 * @param {!WebInspector.CSSStyleModel} cssModel
176 * @param {!WebInspector.Workspace} workspace 176 * @param {!WebInspector.Workspace} workspace
177 * @param {!WebInspector.NetworkMapping} networkMapping 177 * @param {!WebInspector.NetworkMapping} networkMapping
178 */ 178 */
179 WebInspector.CSSWorkspaceBinding.TargetInfo = function(cssModel, workspace, netw orkMapping) 179 WebInspector.CSSWorkspaceBinding.TargetInfo = function(cssModel, workspace, netw orkMapping)
180 { 180 {
181 this._cssModel = cssModel; 181 this._cssModel = cssModel;
182 this._stylesSourceMapping = new WebInspector.StylesSourceMapping(cssModel, w orkspace, networkMapping); 182 this._stylesSourceMapping = new WebInspector.StylesSourceMapping(cssModel, w orkspace, networkMapping);
183 this._sassSourceMapping = new WebInspector.SASSSourceMapping(cssModel, works pace, networkMapping, WebInspector.NetworkProject.forTarget(cssModel.target())); 183 this._sassSourceMapping = new WebInspector.SASSSourceMapping(cssModel, netwo rkMapping, WebInspector.NetworkProject.forTarget(cssModel.target()));
184 184
185 /** @type {!Map.<string, !WebInspector.CSSWorkspaceBinding.HeaderInfo>} */ 185 /** @type {!Map.<string, !WebInspector.CSSWorkspaceBinding.HeaderInfo>} */
186 this._headerInfoById = new Map(); 186 this._headerInfoById = new Map();
187 187
188 cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, this._styleSheetAdded, this); 188 cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, this._styleSheetAdded, this);
189 cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetRemove d, this._styleSheetRemoved, this); 189 cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetRemove d, this._styleSheetRemoved, this);
190 } 190 }
191 191
192 WebInspector.CSSWorkspaceBinding.TargetInfo.prototype = { 192 WebInspector.CSSWorkspaceBinding.TargetInfo.prototype = {
193 /** 193 /**
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 * @param {number} lineNumber 433 * @param {number} lineNumber
434 * @return {boolean} 434 * @return {boolean}
435 */ 435 */
436 uiLineHasMapping: function(uiSourceCode, lineNumber) { } 436 uiLineHasMapping: function(uiSourceCode, lineNumber) { }
437 } 437 }
438 438
439 /** 439 /**
440 * @type {!WebInspector.CSSWorkspaceBinding} 440 * @type {!WebInspector.CSSWorkspaceBinding}
441 */ 441 */
442 WebInspector.cssWorkspaceBinding; 442 WebInspector.cssWorkspaceBinding;
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698