Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(620)

Unified Diff: third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js

Issue 2166603002: DevTools: roll CodeMirror (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add cm_modes and multiplex.js Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+ }
},
/**

Powered by Google App Engine
This is Rietveld 408576698