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

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

Issue 2456413003: DevTools: restore selection and scrollposition between network and filesystem (Closed)
Patch Set: 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 b8568d0a386feea5e1bf2f310838c26256a78085..f27de057a018ac514bd612bfeab64aec1bcaf645 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