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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sass/ASTService.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, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sass/ASTService.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sass/ASTService.js b/third_party/WebKit/Source/devtools/front_end/sass/ASTService.js
index cf2ca5c716332cb2b4c83911fef14be68b02caee..c780338050135ab967637209a341c6db53539a5e 100644
--- a/third_party/WebKit/Source/devtools/front_end/sass/ASTService.js
+++ b/third_party/WebKit/Source/devtools/front_end/sass/ASTService.js
@@ -7,8 +7,6 @@
*/
WebInspector.ASTService = function()
{
- this._sassInitPromise = self.runtime.instancePromise(WebInspector.TokenizerFactory);
- this._terminated = false;
}
WebInspector.ASTService.prototype = {
@@ -19,7 +17,6 @@ WebInspector.ASTService.prototype = {
*/
parseCSS: function(url, text)
{
- console.assert(!this._terminated, "Illegal call parseCSS on terminated ASTService.");
return WebInspector.SASSSupport.parseCSS(url, text);
},
@@ -30,7 +27,6 @@ WebInspector.ASTService.prototype = {
*/
parseSCSS: function(url, text)
{
- console.assert(!this._terminated, "Illegal call parseSCSS on terminated ASTService.");
- return this._sassInitPromise.then(tokenizer => WebInspector.SASSSupport.parseSCSS(tokenizer, url, text));
+ return WebInspector.SASSSupport.parseSCSS(url, text);
},
}

Powered by Google App Engine
This is Rietveld 408576698