Web Inspector: Entering ":n" in Open Resource Dialog, where n > number of lines,...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Aug 2016 05:12:32 +0000 (05:12 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Aug 2016 05:12:32 +0000 (05:12 +0000)
commitbdebe4f1ca2f96762922e9e6e6c88ed1e366158e
treeb70926ded5fffb2e3deddb78d2ac1386fcb87588
parent924342df1c22d029829ac2fa08c403b761d66ff6
Web Inspector: Entering ":n" in Open Resource Dialog, where n > number of lines, should jump to the last line
https://bugs.webkit.org/show_bug.cgi?id=160840

Patch by Devin Rousso <dcrousso+webkit@gmail.com> on 2016-08-22
Reviewed by Joseph Pecoraro.

* UserInterface/Views/TextEditor.js:
(TextEditor.prototype.revealPosition):
Limit the given line and column to the maximum number of lines and the column count on the
resulting line.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@204755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/TextEditor.js