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

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 test + fix scroll event 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 38dc61c63571f16567b4fd50ea2f090430d13c00..8b5497dfb7b6a50a3fe2a1ae1a4bd6d8f3f85ac5 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