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

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

Issue 2435043003: DevTools: restore selection and scrollposition between network and filesystem (Closed)
Patch Set: add testcase Created 4 years, 2 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/source_frame/SourcesTextEditor.js
diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js b/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
index 7fde4f3adafd489c0adb11aa040dc9e79d47c924..663760dd138308b51d67997ff084fc2db0056c68 100644
--- a/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
+++ b/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
@@ -68,6 +68,16 @@ WebInspector.SourcesTextEditor.prototype = {
},
/**
+ * @override
+ * @param {number} lineNumber
+ */
+ scrollToLine: function(lineNumber)
+ {
+ WebInspector.CodeMirrorTextEditor.prototype.scrollToLine.call(this, lineNumber);
+ this._scroll();
+ },
+
+ /**
* @param {!RegExp} regex
* @param {?WebInspector.TextRange} range
*/

Powered by Google App Engine
This is Rietveld 408576698