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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/DOMSyntaxHighlighter.js

Issue 2300633005: DevTools: Remove leading newline on scripts immediately (Closed)
Patch Set: fix test Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.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/ui/DOMSyntaxHighlighter.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/DOMSyntaxHighlighter.js b/third_party/WebKit/Source/devtools/front_end/ui/DOMSyntaxHighlighter.js
index 6803f83b4ff4be0cd01803758ff316bb6a5b2117..f72b77a9cc003c1da081405af86dd1f1057d12ad 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/DOMSyntaxHighlighter.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/DOMSyntaxHighlighter.js
@@ -75,7 +75,7 @@ WebInspector.DOMSyntaxHighlighter.prototype = {
{
node.removeChildren();
var tokenize = tokenizerFactory.createTokenizer(this._mimeType);
- for (var i = lines[0].length ? 0 : 1; i < lines.length; ++i) {
+ for (var i = 0; i < lines.length; ++i) {
line = lines[i];
plainTextStart = 0;
tokenize(line, processToken.bind(this));
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698