Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js b/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js |
| index 229c825907e8ac6b02db30b0530c11b7a86b6f06..383e8fb4b927162e79141d9fe34710f5824bfd36 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js |
| @@ -1206,10 +1206,14 @@ WebInspector.CodeMirrorTextEditor.prototype = { |
| var lineHandle = this._codeMirror.getLineHandle(lineNumber); |
| if (!lineHandle) |
| return; |
| - if (toggled) |
| + if (toggled) { |
| + this._codeMirror.addLineClass(lineHandle, "gutter", className); |
| this._codeMirror.addLineClass(lineHandle, "wrap", className); |
| - else |
| + } |
|
lushnikov
2016/07/20 01:40:13
nit: else on the same line with }
einbinder
2016/07/21 20:35:50
Done.
|
| + else { |
| + this._codeMirror.removeLineClass(lineHandle, "gutter", className); |
| this._codeMirror.removeLineClass(lineHandle, "wrap", className); |
| + } |
| }, |
| /** |