| Index: Source/devtools/front_end/CodeMirrorTextEditor.js
|
| diff --git a/Source/devtools/front_end/CodeMirrorTextEditor.js b/Source/devtools/front_end/CodeMirrorTextEditor.js
|
| index fa440cc8483eefbe43591095d3055473cad480c7..2674cbd9edfcf7031ddfa882bad8da9de6270a09 100644
|
| --- a/Source/devtools/front_end/CodeMirrorTextEditor.js
|
| +++ b/Source/devtools/front_end/CodeMirrorTextEditor.js
|
| @@ -589,7 +589,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
|
| _updateCodeMirrorMode: function()
|
| {
|
| var showWhitespaces = WebInspector.settings.showWhitespacesInEditor.get();
|
| - this.element.enableStyleClass("show-whitespaces", showWhitespaces);
|
| + this.element.classList.toggle("show-whitespaces", showWhitespaces);
|
| this._codeMirror.setOption("mode", showWhitespaces ? this._whitespaceOverlayMode(this._mimeType) : this._mimeType);
|
| },
|
|
|
| @@ -611,7 +611,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
|
| */
|
| setReadOnly: function(readOnly)
|
| {
|
| - this.element.enableStyleClass("CodeMirror-readonly", readOnly)
|
| + this.element.classList.toggle("CodeMirror-readonly", readOnly)
|
| this._codeMirror.setOption("readOnly", readOnly);
|
| },
|
|
|
|
|