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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/CSSParser.js

Issue 1515733002: DevTools: [SASS] implement CSS AST-builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sass-module
Patch Set: rebaseline test 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/script_formatter_worker/ScriptFormatterWorker.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sdk/CSSParser.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/CSSParser.js b/third_party/WebKit/Source/devtools/front_end/sdk/CSSParser.js
index a09318cafda6f621ba9356ede237108745c1287d..e19aefb2105fd9ed8eaf534ddb45c86977d11d2e 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/CSSParser.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/CSSParser.js
@@ -42,6 +42,25 @@ WebInspector.CSSParser.prototype = {
this._innerParse(text);
},
+ /**
+ * @param {string} text
+ * @return {!Promise<!Array.<!WebInspector.CSSParser.Rule>>}
+ */
+ parsePromise: function(text)
+ {
+ return new Promise(promiseConstructor.bind(this));
+
+ /**
+ * @param {function()} succ
+ * @param {function()} fail
+ * @this {WebInspector.CSSParser}
+ */
+ function promiseConstructor(succ, fail)
+ {
+ this.parse(text, succ);
+ }
+ },
+
dispose: function()
{
if (this._worker) {
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/script_formatter_worker/ScriptFormatterWorker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698