WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 90677
Web Inspector: start searching from the cursor position in the Sources panel.
https://bugs.webkit.org/show_bug.cgi?id=90677
Summary
Web Inspector: start searching from the cursor position in the Sources panel.
Pavel Feldman
Reported
2012-07-06 05:39:07 PDT
Patch to follow.
Attachments
Patch
(5.15 KB, patch)
2012-07-06 05:41 PDT
,
Pavel Feldman
vsevik
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Pavel Feldman
Comment 1
2012-07-06 05:41:00 PDT
Created
attachment 151066
[details]
Patch
Alexander Pavlov (apavlov)
Comment 2
2012-07-06 05:46:30 PDT
Comment on
attachment 151066
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=151066&action=review
> Source/WebCore/inspector/front-end/TextEditorModel.js:120 > + if (this.startLine > other.startLine)
A common approach to such comparators is along the lines of: if (this.startLine === other.startLine) return this.startColumn - other.startColumn; return this.startLine - other.startLine; (oftentimes it is not normalized to sgn(result), since only the relation to 0 is important) I understand that you are fighting for the verbosity in this case, though.
Vsevolod Vlasov
Comment 3
2012-07-06 05:58:58 PDT
Comment on
attachment 151066
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=151066&action=review
> Source/WebCore/inspector/front-end/TextEditor.js:398 > + lastSelection: function(textRange)
Please remove parameter and jsdoc.
> Source/WebCore/inspector/front-end/TextEditor.js:427 > + return;
We might want to set (non empty) selection for other external actions (e.g. for Search across all files). Consider moving the code responsible for turning selection into a cursor position to the blur event handler instead.
Pavel Feldman
Comment 4
2012-07-06 06:06:23 PDT
> Please remove parameter and jsdoc.
Removed from the code, jsdoc has it for a reason.
> > > Source/WebCore/inspector/front-end/TextEditor.js:427 > > + return; > > We might want to set (non empty) selection for other external actions (e.g. for Search across all files). > Consider moving the code responsible for turning selection into a cursor position to the blur event handler instead.
I am not sure I follow.
Pavel Feldman
Comment 5
2012-07-06 06:08:58 PDT
Committed
r121957
: <
http://trac.webkit.org/changeset/121957
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug