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

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

Issue 1805343003: DevTools: rename script_formatter_worker into formatter_worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 /** 1 /**
2 * Copyright 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * @constructor 8 * @constructor
9 * @extends {WebInspector.Object} 9 * @extends {WebInspector.Object}
10 */ 10 */
11 WebInspector.CSSParser = function() 11 WebInspector.CSSParser = function()
12 { 12 {
13 this._worker = new WorkerRuntime.Worker("script_formatter_worker"); 13 this._worker = new WorkerRuntime.Worker("formatter_worker");
14 this._worker.onmessage = this._onRuleChunk.bind(this); 14 this._worker.onmessage = this._onRuleChunk.bind(this);
15 this._rules = []; 15 this._rules = [];
16 } 16 }
17 17
18 WebInspector.CSSParser.Events = { 18 WebInspector.CSSParser.Events = {
19 RulesParsed: "RulesParsed" 19 RulesParsed: "RulesParsed"
20 } 20 }
21 21
22 WebInspector.CSSParser.prototype = { 22 WebInspector.CSSParser.prototype = {
23 /** 23 /**
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 * @constructor 254 * @constructor
255 * @param {string} text 255 * @param {string} text
256 */ 256 */
257 WebInspector.CSSParserService.ParseRequest = function(text) 257 WebInspector.CSSParserService.ParseRequest = function(text)
258 { 258 {
259 this.text = text; 259 this.text = text;
260 /** @type {function(!Array.<!WebInspector.CSSParser.Rule>)} */ 260 /** @type {function(!Array.<!WebInspector.CSSParser.Rule>)} */
261 this.parsedCallback; 261 this.parsedCallback;
262 this.parsedPromise = new Promise(fulfill => this.parsedCallback = fulfill); 262 this.parsedPromise = new Promise(fulfill => this.parsedCallback = fulfill);
263 } 263 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698