| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 /** | 49 /** |
| 50 * @param {!WebInspector.Event} event | 50 * @param {!WebInspector.Event} event |
| 51 */ | 51 */ |
| 52 _sourceMapAttached: function(event) | 52 _sourceMapAttached: function(event) |
| 53 { | 53 { |
| 54 var header = /** @type {!WebInspector.CSSStyleSheetHeader} */ (event.dat
a); | 54 var header = /** @type {!WebInspector.CSSStyleSheetHeader} */ (event.dat
a); |
| 55 var sourceMap = this._cssModel.sourceMapForHeader(header); | 55 var sourceMap = this._cssModel.sourceMapForHeader(header); |
| 56 for (var sassURL of sourceMap.sourceURLs()) { | 56 for (var sassURL of sourceMap.sourceURLs()) { |
| 57 if (!this._networkMapping.hasMappingForNetworkURL(sassURL)) { | 57 if (!this._networkMapping.hasMappingForNetworkURL(sassURL)) { |
| 58 var contentProvider = sourceMap.sourceContentProvider(sassURL, W
ebInspector.resourceTypes.SourceMapStyleSheet); | 58 var contentProvider = sourceMap.sourceContentProvider(sassURL, W
ebInspector.resourceTypes.SourceMapStyleSheet); |
| 59 this._networkProject.addFileForURL(sassURL, contentProvider, Web
Inspector.ResourceTreeFrame.fromStyleSheet(header)); | 59 this._networkProject.addFile(contentProvider, WebInspector.Resou
rceTreeFrame.fromStyleSheet(header)); |
| 60 } | 60 } |
| 61 } | 61 } |
| 62 WebInspector.cssWorkspaceBinding.updateLocations(header); | 62 WebInspector.cssWorkspaceBinding.updateLocations(header); |
| 63 }, | 63 }, |
| 64 | 64 |
| 65 /** | 65 /** |
| 66 * @param {!WebInspector.Event} event | 66 * @param {!WebInspector.Event} event |
| 67 */ | 67 */ |
| 68 _sourceMapDetached: function(event) | 68 _sourceMapDetached: function(event) |
| 69 { | 69 { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 }, | 169 }, |
| 170 | 170 |
| 171 /** | 171 /** |
| 172 * @return {!WebInspector.Target} | 172 * @return {!WebInspector.Target} |
| 173 */ | 173 */ |
| 174 target: function() | 174 target: function() |
| 175 { | 175 { |
| 176 return this._cssModel.target(); | 176 return this._cssModel.target(); |
| 177 } | 177 } |
| 178 } | 178 } |
| OLD | NEW |