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

Unified Diff: Source/devtools/front_end/DefaultTextEditor.js

Issue 18828002: DevTools: Replace binarySearch with lowerBound and upperBound functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline Created 7 years, 5 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 | « LayoutTests/inspector/utilities-expected.txt ('k') | Source/devtools/front_end/MemoryStatistics.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/DefaultTextEditor.js
diff --git a/Source/devtools/front_end/DefaultTextEditor.js b/Source/devtools/front_end/DefaultTextEditor.js
index 9783478ebdafc42d004b593369453b58dc346888..93abe950edd5d410b97fcad36fe9674aeef4ec5e 100644
--- a/Source/devtools/front_end/DefaultTextEditor.js
+++ b/Source/devtools/front_end/DefaultTextEditor.js
@@ -1429,7 +1429,7 @@ WebInspector.TextEditorMainPanel.prototype = {
return 0;
return value - object.startColumn;
}
- var index = binarySearch(column, highlight.ranges, compare);
+ var index = highlight.ranges.binaryIndexOf(column, compare);
if (index >= 0) {
var range = highlight.ranges[index];
return {
« no previous file with comments | « LayoutTests/inspector/utilities-expected.txt ('k') | Source/devtools/front_end/MemoryStatistics.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698