OLD | NEW |
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 = Runtime.startWorker("script_formatter_worker"); | 13 this._worker = new Worker("script_formatter_worker/ScriptFormatterWorker.js"
); |
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 /** | 121 /** |
122 * @typedef {(WebInspector.CSSParser.StyleRule|WebInspector.CSSParser.AtRule)} | 122 * @typedef {(WebInspector.CSSParser.StyleRule|WebInspector.CSSParser.AtRule)} |
123 */ | 123 */ |
124 WebInspector.CSSParser.Rule; | 124 WebInspector.CSSParser.Rule; |
125 | 125 |
126 /** | 126 /** |
127 * @typedef {{name: string, value: string}} | 127 * @typedef {{name: string, value: string}} |
128 */ | 128 */ |
129 WebInspector.CSSParser.Property; | 129 WebInspector.CSSParser.Property; |
OLD | NEW |