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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js

Issue 1917863008: DevTools: [SASS] introduce Gonzales-PE for SCSS parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline Created 4 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sass/SASSSupport.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sass/SASSSupport.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698