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

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: roll CodeMirror 5.17.1 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..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);
+ }
},
/**

Powered by Google App Engine
This is Rietveld 408576698