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 208563
Implement WKTextSelectionRect in terms of WebCore::SelectionRect and WKTextRange in terms of WKTextSelectionRect
https://bugs.webkit.org/show_bug.cgi?id=208563
Summary
Implement WKTextSelectionRect in terms of WebCore::SelectionRect and WKTextRa...
Daniel Bates
Reported
2020-03-03 23:57:12 PST
Implement WKTextSelectionRect in terms of WebCore::SelectionRect and WKTextRange in terms of WKTextSelectionRect.
Attachments
For the bots
(15.58 KB, patch)
2020-03-03 23:59 PST
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
For the bots
(15.63 KB, patch)
2020-03-04 00:00 PST
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
For the bots
(17.95 KB, patch)
2020-03-04 00:14 PST
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
Patch
(8.06 KB, patch)
2020-03-04 00:17 PST
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
For the bots
(17.95 KB, patch)
2020-03-04 00:30 PST
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
Patch
(14.40 KB, patch)
2020-03-04 01:04 PST
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
Patch
(8.03 KB, patch)
2020-03-04 01:05 PST
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
For the bots
(17.88 KB, patch)
2020-03-04 01:06 PST
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2020-03-03 23:59:11 PST
Created
attachment 392380
[details]
For the bots
Daniel Bates
Comment 2
2020-03-04 00:00:23 PST
Created
attachment 392381
[details]
For the bots
Daniel Bates
Comment 3
2020-03-04 00:14:51 PST
Created
attachment 392382
[details]
For the bots
Daniel Bates
Comment 4
2020-03-04 00:17:37 PST
Created
attachment 392383
[details]
Patch This patch will fail to apply without the patch for
bug #208561
.
Daniel Bates
Comment 5
2020-03-04 00:30:58 PST
Created
attachment 392386
[details]
For the bots
Daniel Bates
Comment 6
2020-03-04 01:04:34 PST
Created
attachment 392390
[details]
Patch
Daniel Bates
Comment 7
2020-03-04 01:05:54 PST
Created
attachment 392391
[details]
Patch
Daniel Bates
Comment 8
2020-03-04 01:06:59 PST
Created
attachment 392392
[details]
For the bots
Alex Christensen
Comment 9
2020-03-04 08:50:22 PST
Comment on
attachment 392391
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392391&action=review
> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:4465 > + auto rects = adoptNS([[NSMutableArray alloc] initWithCapacity:coreRects.size()]);
arrayWithCapacity?
Daniel Bates
Comment 10
2020-03-04 09:59:51 PST
(In reply to Alex Christensen from
comment #9
)
> Comment on
attachment 392391
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=392391&action=review
> > > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:4465 > > + auto rects = adoptNS([[NSMutableArray alloc] initWithCapacity:coreRects.size()]); > > arrayWithCapacity?
I thought about it when I wrote this code and was debating whether to RetainPtr it all up or not. At the end fo the day I chose to go with RetainPtr (even though the code is not long!). The generated code will be just as efficient because of the inlining of autorelease()
Daniel Bates
Comment 11
2020-03-04 10:04:20 PST
Thanks for the review.
Daniel Bates
Comment 12
2020-03-04 10:05:47 PST
Comment on
attachment 392391
[details]
Patch Clearing flags on attachment: 392391 Committed
r257852
: <
https://trac.webkit.org/changeset/257852
>
Daniel Bates
Comment 13
2020-03-04 10:05:48 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 14
2020-03-04 10:06:16 PST
<
rdar://problem/60044375
>
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