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..81d22d30c76409bdd6a2e75a995c0d1cf9e68fba 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,13 @@ 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 |
+ } else { |
+ this._codeMirror.removeLineClass(lineHandle, "gutter", className); |
this._codeMirror.removeLineClass(lineHandle, "wrap", className); |
+ } |
}, |
/** |