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

Unified Diff: third_party/WebKit/Source/devtools/front_end/common/TextRange.js

Issue 2500493003: [DevTools] make breakpoints better (Closed)
Patch Set: 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/common/TextRange.js
diff --git a/third_party/WebKit/Source/devtools/front_end/common/TextRange.js b/third_party/WebKit/Source/devtools/front_end/common/TextRange.js
index 3dcb0baec18a28888164beaf80afeb6a6baaa017..bb99e8129092874e4598d1aedaebc7a40027d04f 100644
--- a/third_party/WebKit/Source/devtools/front_end/common/TextRange.js
+++ b/third_party/WebKit/Source/devtools/front_end/common/TextRange.js
@@ -55,6 +55,14 @@ WebInspector.TextRange = class {
}
/**
+ * @param {number} line
+ * @return {!WebInspector.TextRange}
+ */
+ static createFromLine(line) {
+ return new WebInspector.TextRange(line, 0, line + 1, 0);
+ }
+
+ /**
* @param {!Object} serializedTextRange
* @return {!WebInspector.TextRange}
*/

Powered by Google App Engine
This is Rietveld 408576698