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

Unified Diff: Source/devtools/front_end/DefaultTextEditor.js

Issue 14329024: [DevTools] Close drawer on blur after short timeout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Close drawer only in overlay mode. Created 7 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: Source/devtools/front_end/DefaultTextEditor.js
diff --git a/Source/devtools/front_end/DefaultTextEditor.js b/Source/devtools/front_end/DefaultTextEditor.js
index 46abbaaa7051d98339ea469651ccb3a391e3ac74..6cec4e4faba6ac6f3f7992b2efa246b2bc802969 100644
--- a/Source/devtools/front_end/DefaultTextEditor.js
+++ b/Source/devtools/front_end/DefaultTextEditor.js
@@ -1863,7 +1863,7 @@ WebInspector.TextEditorMainPanel.prototype = {
this.revealLine(lineNumber);
if (!this._readOnly)
- this._restoreSelection(WebInspector.TextRange.createFromLocation(lineNumber, 0), false);
+ this.setSelection(WebInspector.TextRange.createFromLocation(lineNumber, 0));
this.addDecoration(lineNumber, "webkit-highlighted-line");
},

Powered by Google App Engine
This is Rietveld 408576698