OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 * @return {!Promise<?WebInspector.SourceMap>} | 150 * @return {!Promise<?WebInspector.SourceMap>} |
151 * @this {WebInspector.CSSModel} | 151 * @this {WebInspector.CSSModel} |
152 */ | 152 */ |
153 function onTextSourceMapLoaded(sourceMapURL, sourceMap) | 153 function onTextSourceMapLoaded(sourceMapURL, sourceMap) |
154 { | 154 { |
155 if (!sourceMap) | 155 if (!sourceMap) |
156 return Promise.resolve(/** @type {?WebInspector.SourceMap} */(nu
ll)); | 156 return Promise.resolve(/** @type {?WebInspector.SourceMap} */(nu
ll)); |
157 var factoryExtension = this._factoryForSourceMap(sourceMap); | 157 var factoryExtension = this._factoryForSourceMap(sourceMap); |
158 if (!factoryExtension) | 158 if (!factoryExtension) |
159 return Promise.resolve(/** @type {?WebInspector.SourceMap} */(so
urceMap)); | 159 return Promise.resolve(/** @type {?WebInspector.SourceMap} */(so
urceMap)); |
160 | |
161 return factoryExtension.instancePromise() | 160 return factoryExtension.instancePromise() |
162 .then(factory => factory.editableSourceMap(this.target(), source
Map)) | 161 .then(factory => factory.editableSourceMap(this.target(), source
Map)) |
163 .then(map => map || sourceMap) | 162 .then(map => map || sourceMap) |
164 .catchException(/** @type {?WebInspector.SourceMap} */(null)); | 163 .catchException(/** @type {?WebInspector.SourceMap} */(null)); |
165 } | 164 } |
166 | 165 |
167 /** | 166 /** |
168 * @param {string} sourceMapURL | 167 * @param {string} sourceMapURL |
169 * @param {?WebInspector.SourceMap} sourceMap | 168 * @param {?WebInspector.SourceMap} sourceMap |
170 * @this {WebInspector.CSSModel} | 169 * @this {WebInspector.CSSModel} |
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 /** | 1164 /** |
1166 * @constructor | 1165 * @constructor |
1167 * @param {?WebInspector.CSSStyleDeclaration} inlineStyle | 1166 * @param {?WebInspector.CSSStyleDeclaration} inlineStyle |
1168 * @param {?WebInspector.CSSStyleDeclaration} attributesStyle | 1167 * @param {?WebInspector.CSSStyleDeclaration} attributesStyle |
1169 */ | 1168 */ |
1170 WebInspector.CSSModel.InlineStyleResult = function(inlineStyle, attributesStyle) | 1169 WebInspector.CSSModel.InlineStyleResult = function(inlineStyle, attributesStyle) |
1171 { | 1170 { |
1172 this.inlineStyle = inlineStyle; | 1171 this.inlineStyle = inlineStyle; |
1173 this.attributesStyle = attributesStyle; | 1172 this.attributesStyle = attributesStyle; |
1174 } | 1173 } |
OLD | NEW |