| Index: third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js b/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
|
| index 663760dd138308b51d67997ff084fc2db0056c68..6c285623b222827657f82b1ba417408bfe3e5dae 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
|
| @@ -31,7 +31,7 @@ WebInspector.SourcesTextEditor = function(delegate)
|
| this.codeMirror().on("beforeSelectionChange", this._fireBeforeSelectionChanged.bind(this));
|
| this.element.addEventListener("contextmenu", this._contextMenu.bind(this), false);
|
|
|
| - this._blockIndentController = new WebInspector.SourcesTextEditor.BlockIndentController(this.codeMirror());
|
| + this.codeMirror().addKeyMap(WebInspector.SourcesTextEditor._BlockIndentController);
|
| this._tokenHighlighter = new WebInspector.SourcesTextEditor.TokenHighlighter(this, this.codeMirror());
|
|
|
| /** @type {!Array<string>} */
|
| @@ -684,16 +684,7 @@ CodeMirror.commands.sourcesDismiss = function(codemirror)
|
| return CodeMirror.commands.dismiss(codemirror);
|
| };
|
|
|
| -/**
|
| - * @constructor
|
| - * @param {!CodeMirror} codeMirror
|
| - */
|
| -WebInspector.SourcesTextEditor.BlockIndentController = function(codeMirror)
|
| -{
|
| - codeMirror.addKeyMap(this);
|
| -};
|
| -
|
| -WebInspector.SourcesTextEditor.BlockIndentController.prototype = {
|
| +WebInspector.SourcesTextEditor._BlockIndentController = {
|
| name: "blockIndentKeymap",
|
|
|
| /**
|
|
|