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

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: Fixed comments. 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 f33c37803b76f9ba4027ee2b74b4d1ac77abe70f..fba9162466cd62d9c984849cce3058704e24584f 100644
--- a/Source/devtools/front_end/DefaultTextEditor.js
+++ b/Source/devtools/front_end/DefaultTextEditor.js
@@ -1874,7 +1874,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