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

Unified Diff: third_party/WebKit/Source/devtools/front_end/cm/matchbrackets.js

Issue 2862603003: Revert of DevTools: Roll CodeMirror to 5.25.1
Patch Set: Created 3 years, 8 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/cm/matchbrackets.js
diff --git a/third_party/WebKit/Source/devtools/front_end/cm/matchbrackets.js b/third_party/WebKit/Source/devtools/front_end/cm/matchbrackets.js
index 76754ed557fe03c0449cbadd4b927151a3be898d..70e1ae18c7481742598c8b2069b8a6c717f47257 100644
--- a/third_party/WebKit/Source/devtools/front_end/cm/matchbrackets.js
+++ b/third_party/WebKit/Source/devtools/front_end/cm/matchbrackets.js
@@ -102,10 +102,8 @@
}
CodeMirror.defineOption("matchBrackets", false, function(cm, val, old) {
- if (old && old != CodeMirror.Init) {
+ if (old && old != CodeMirror.Init)
cm.off("cursorActivity", doMatchBrackets);
- if (currentlyHighlighted) {currentlyHighlighted(); currentlyHighlighted = null;}
- }
if (val) {
cm.state.matchBrackets = typeof val == "object" ? val : {};
cm.on("cursorActivity", doMatchBrackets);

Powered by Google App Engine
This is Rietveld 408576698