WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52485
make line selection have a extend only from where you start the selection in the code review tool
https://bugs.webkit.org/show_bug.cgi?id=52485
Summary
make line selection have a extend only from where you start the selection in ...
Ojan Vafai
Reported
2011-01-14 15:26:34 PST
make line selection have a extend only from where you start the selection in the code review tool
Attachments
Patch
(3.28 KB, patch)
2011-01-14 15:26 PST
,
Ojan Vafai
abarth
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ojan Vafai
Comment 1
2011-01-14 15:26:59 PST
Created
attachment 79012
[details]
Patch
Ojan Vafai
Comment 2
2011-01-14 15:29:54 PST
As requested in
bug 52462
.
Adam Barth
Comment 3
2011-01-14 17:36:48 PST
Comment on
attachment 79012
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=79012&action=review
This code reads very nicely with all these helper functions to convert between representations.
> Websites/bugs.webkit.org/code-review.js:1067 > + while (current_index <= last_index) { > + $('#line' + current_index).addClass('selected') > + current_index++; > + }
This looks like it could get expensive with a large selection. Have you tested a large selection?
Ojan Vafai
Comment 4
2011-01-14 18:27:37 PST
(In reply to
comment #3
)
> (From update of
attachment 79012
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=79012&action=review
> > > Websites/bugs.webkit.org/code-review.js:1067 > > + while (current_index <= last_index) { > > + $('#line' + current_index).addClass('selected') > > + current_index++; > > + } > > This looks like it could get expensive with a large selection. Have you tested a large selection?
There's only so large of a selection you can make given that we don't scroll. You can get at most 1 screenful of lines. In other words, you can't make a large selection.
Ojan Vafai
Comment 5
2011-01-20 10:49:23 PST
Ping.
Adam Barth
Comment 6
2011-01-20 11:02:46 PST
Comment on
attachment 79012
[details]
Patch Oops. Sorry.
Ojan Vafai
Comment 7
2011-01-20 11:21:54 PST
Committed
r76268
: <
http://trac.webkit.org/changeset/76268
>
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