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

Unified Diff: third_party/WebKit/Source/devtools/front_end/formatter_worker/CSSFormatter.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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/formatter_worker/CSSFormatter.js
diff --git a/third_party/WebKit/Source/devtools/front_end/formatter_worker/CSSFormatter.js b/third_party/WebKit/Source/devtools/front_end/formatter_worker/CSSFormatter.js
index 35eac080d94a1ac70c99bd814b985d36f1390cd2..fcb40eb2343514854ea684cbfa9c6bca81584474 100644
--- a/third_party/WebKit/Source/devtools/front_end/formatter_worker/CSSFormatter.js
+++ b/third_party/WebKit/Source/devtools/front_end/formatter_worker/CSSFormatter.js
@@ -31,9 +31,9 @@
/**
* @unrestricted
*/
-WebInspector.CSSFormatter = class {
+FormatterWorker.CSSFormatter = class {
/**
- * @param {!WebInspector.FormattedContentBuilder} builder
+ * @param {!FormatterWorker.FormattedContentBuilder} builder
*/
constructor(builder) {
this._builder = builder;
@@ -51,7 +51,7 @@ WebInspector.CSSFormatter = class {
this._toOffset = toOffset;
this._lastLine = -1;
this._state = {};
- var tokenize = WebInspector.createTokenizer('text/css');
+ var tokenize = FormatterWorker.createTokenizer('text/css');
var oldEnforce = this._builder.setEnforceSpaceBetweenWords(false);
tokenize(text.substring(this._fromOffset, this._toOffset), this._tokenCallback.bind(this));
this._builder.setEnforceSpaceBetweenWords(oldEnforce);

Powered by Google App Engine
This is Rietveld 408576698