Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/common/Text.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/common/Text.js b/third_party/WebKit/Source/devtools/front_end/common/Text.js |
| index 3e62f17a72147c7ff52d1ed7026a37253cc1dc09..d1e2ac09506eb582dfdae41acc2e262508223b8b 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/common/Text.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/common/Text.js |
| @@ -129,6 +129,16 @@ WebInspector.TextCursor.prototype = { |
| }, |
| /** |
| + * @param {number} offset |
| + */ |
| + setOffset: function(offset) |
|
dgozman
2016/04/14 19:15:37
resetTo
lushnikov
2016/04/15 00:16:01
Done.
|
| + { |
| + this._offset = offset; |
| + this._lineNumber = this._lineEndings.lowerBound(offset); |
| + this._columnNumber = this._lineNumber ? this._offset - this._lineEndings[this._lineNumber - 1] - 1 : this._offset; |
| + }, |
| + |
| + /** |
| * @return {number} |
| */ |
| lineNumber: function() |