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

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

Issue 2028863002: DevTools: fix css pretty-print. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 7 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/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 3476327b90b092d2e41802884529879bd07c5746..5164e545bfed5800727730f9f3748528fae89728 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
@@ -52,7 +52,9 @@ WebInspector.CSSFormatter.prototype = {
this._lastLine = -1;
this._state = {};
var tokenize = WebInspector.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