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

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

Issue 1835783002: DevTools: simplify WI.FormattedContentBuilder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline tests 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/formatter_worker/IdentityFormatter.js
diff --git a/third_party/WebKit/Source/devtools/front_end/formatter_worker/IdentityFormatter.js b/third_party/WebKit/Source/devtools/front_end/formatter_worker/IdentityFormatter.js
index bafb5f2b1b3f352da51a87a44849d4c730427392..e428b7066a0853465c8abbb56ae3943227fd1b08 100644
--- a/third_party/WebKit/Source/devtools/front_end/formatter_worker/IdentityFormatter.js
+++ b/third_party/WebKit/Source/devtools/front_end/formatter_worker/IdentityFormatter.js
@@ -21,9 +21,7 @@ WebInspector.IdentityFormatter.prototype = {
format: function(text, lineEndings, fromOffset, toOffset)
{
var content = text.substring(fromOffset, toOffset);
- var startLine = lineEndings.lowerBound(fromOffset);
- var endLine = lineEndings.lowerBound(toOffset);
- this._builder.addToken(content, fromOffset, startLine, endLine);
+ this._builder.addToken(content, fromOffset);
}
}

Powered by Google App Engine
This is Rietveld 408576698