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

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

Issue 2278673003: DevTools: Remove stray event handlers from CMTE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0e92a7281acb713f39c9b4dfd1bdeedb79ff76de..f30c598d0cf5a0f5630c4c095ecdbfbea09561fb 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
@@ -144,22 +144,8 @@ WebInspector.CodeMirrorTextEditor = function()
this._selectNextOccurrenceController = new WebInspector.CodeMirrorTextEditor.SelectNextOccurrenceController(this, this._codeMirror);
this._codeMirror.on("changes", this._changes.bind(this));
- this._codeMirror.on("gutterClick", this._gutterClick.bind(this));
this._codeMirror.on("beforeSelectionChange", this._beforeSelectionChange.bind(this));
- this._codeMirror.on("scroll", this._scroll.bind(this));
- this._codeMirror.on("focus", this._focus.bind(this));
this._codeMirror.on("keyHandled", this._onKeyHandled.bind(this));
- this.element.addEventListener("contextmenu", this._contextMenu.bind(this), false);
-
- /**
- * @this {WebInspector.CodeMirrorTextEditor}
- */
- function updateAnticipateJumpFlag(value)
- {
- this._isHandlingMouseDownEvent = value;
- }
- this.element.addEventListener("mousedown", updateAnticipateJumpFlag.bind(this, true), true);
- this.element.addEventListener("mousedown", updateAnticipateJumpFlag.bind(this, false), false);
this.element.style.overflow = "hidden";
this._codeMirrorElement.classList.add("source-code");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698