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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/OpenFileQuickOpen.js

Issue 2799603004: DevTools: Preserve source selection when using Quick Open (Closed)
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
« 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/sources/OpenFileQuickOpen.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/OpenFileQuickOpen.js b/third_party/WebKit/Source/devtools/front_end/sources/OpenFileQuickOpen.js
index 0dc5924beda080eba2a369f900e9156e454d41b7..b2500fe92eca4a659a20393318f89fcf70a6f5be 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/OpenFileQuickOpen.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/OpenFileQuickOpen.js
@@ -24,7 +24,10 @@ Sources.OpenFileQuickOpen = class extends Sources.FilteredUISourceCodeListProvid
if (!uiSourceCode)
return;
- Common.Revealer.reveal(uiSourceCode.uiLocation((lineNumber || 0), columnNumber));
+ if (typeof lineNumber === 'number')
+ Common.Revealer.reveal(uiSourceCode.uiLocation(lineNumber, columnNumber));
+ else
+ Common.Revealer.reveal(uiSourceCode);
}
/**
« 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