| Index: third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js b/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js
|
| index 6cdba4c5769f4ef81bb78283c4513b80ce89d7cd..df62fc8821e24918b2768105ecf89766642fc555 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js
|
| @@ -142,7 +142,8 @@ TextEditor.CodeMirrorTextEditor = class extends UI.VBox {
|
|
|
| this._codeMirror.setOption('flattenSpans', false);
|
|
|
| - this._codeMirror.setOption('maxHighlightLength', TextEditor.CodeMirrorTextEditor.maxHighlightLength);
|
| + this._codeMirror.setOption(
|
| + 'maxHighlightLength', options.maxHighlightLength || TextEditor.CodeMirrorTextEditor.maxHighlightLength);
|
| this._codeMirror.setOption('mode', null);
|
| this._codeMirror.setOption('crudeMeasuringFrom', 1000);
|
|
|
| @@ -729,6 +730,13 @@ TextEditor.CodeMirrorTextEditor = class extends UI.VBox {
|
| }
|
|
|
| /**
|
| + * @param {function(number):string} formatter
|
| + */
|
| + setLineNumberFormatter(formatter) {
|
| + this._codeMirror.setOption('lineNumberFormatter', formatter);
|
| + }
|
| +
|
| + /**
|
| * @override
|
| * @param {function(!KeyboardEvent)} handler
|
| */
|
|
|