WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
215871
Switch to class method for smart insert/delete
https://bugs.webkit.org/show_bug.cgi?id=215871
Summary
Switch to class method for smart insert/delete
Megan Gardner
Reported
2020-08-26 16:07:30 PDT
Switch to class method for smart insert/delete
Attachments
Patch
(1.35 KB, patch)
2020-08-26 16:11 PDT
,
Megan Gardner
no flags
Details
Formatted Diff
Diff
Patch
(1.96 KB, patch)
2020-08-26 16:28 PDT
,
Megan Gardner
no flags
Details
Formatted Diff
Diff
Patch
(2.04 KB, patch)
2020-08-26 16:39 PDT
,
Megan Gardner
no flags
Details
Formatted Diff
Diff
Patch
(1.95 KB, patch)
2020-08-26 17:13 PDT
,
Megan Gardner
no flags
Details
Formatted Diff
Diff
Patch
(2.86 KB, patch)
2020-08-26 18:04 PDT
,
Megan Gardner
no flags
Details
Formatted Diff
Diff
Patch
(2.87 KB, patch)
2020-08-26 18:06 PDT
,
Megan Gardner
no flags
Details
Formatted Diff
Diff
Patch
(2.86 KB, patch)
2020-08-27 10:36 PDT
,
Megan Gardner
no flags
Details
Formatted Diff
Diff
Show Obsolete
(6)
View All
Add attachment
proposed patch, testcase, etc.
Megan Gardner
Comment 1
2020-08-26 16:11:09 PDT
Created
attachment 407349
[details]
Patch
Megan Gardner
Comment 2
2020-08-26 16:11:48 PDT
<
rdar://problem/67281776
>
Megan Gardner
Comment 3
2020-08-26 16:28:01 PDT
Created
attachment 407352
[details]
Patch
Darin Adler
Comment 4
2020-08-26 16:34:26 PDT
Comment on
attachment 407352
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=407352&action=review
> Source/WebKit/UIProcess/ios/TextCheckerIOS.mm:120 > - return [[UIKeyboardImpl sharedInstance] smartInsertDeleteIsEnabled]; > + return [UIKeyboardImpl smartInsertDeleteIsEnabled];
This is available in all versions we need to support?
Megan Gardner
Comment 5
2020-08-26 16:39:36 PDT
Created
attachment 407356
[details]
Patch
Darin Adler
Comment 6
2020-08-26 16:44:45 PDT
Comment on
attachment 407356
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=407356&action=review
> Source/WebKit/Platform/spi/ios/UIKitSPI.h:309 > +#if PLATFORM(IOS_FAMILY)
What’s the case of UIKit use with PLATFORM(IOS_FAMILY) false? I think there isn’t one because even Catalyst is part of that.
Megan Gardner
Comment 7
2020-08-26 17:13:22 PDT
Created
attachment 407360
[details]
Patch
Darin Adler
Comment 8
2020-08-26 17:18:48 PDT
Comment on
attachment 407360
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=407360&action=review
> Source/WebKit/Platform/spi/ios/UIKitSPI.h:309 > -- (BOOL)smartInsertDeleteIsEnabled; > ++ (BOOL)smartInsertDeleteIsEnabled;
Let me ask my original question again: Is this available in UIKit in the older versions of the various platforms that WebKit currently supports? Like if it was new to iOS 14 it would not be OK to use it unconditionally yet.
Megan Gardner
Comment 9
2020-08-26 18:04:06 PDT
Created
attachment 407362
[details]
Patch
Darin Adler
Comment 10
2020-08-26 18:05:38 PDT
Comment on
attachment 407362
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=407362&action=review
> Source/WTF/wtf/PlatformHave.h:714 > +#define UIKEYBOARDIMPL_SMARTINSERTDELETE_CLASS_METHOD 1
This needs a HAVE_ prefix.
Megan Gardner
Comment 11
2020-08-26 18:06:36 PDT
Created
attachment 407363
[details]
Patch
Tim Horton
Comment 12
2020-08-26 18:30:48 PDT
Comment on
attachment 407363
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=407363&action=review
> Source/WebKit/UIProcess/ios/TextCheckerIOS.mm:120 > +#if PLATFORM(HAVE_UIKEYBOARDIMPL_SMARTINSERTDELETE_CLASS_METHOD)
This is still not right. PLATFORM(HAVE_...)
Darin Adler
Comment 13
2020-08-26 18:40:47 PDT
Comment on
attachment 407363
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=407363&action=review
>> Source/WebKit/UIProcess/ios/TextCheckerIOS.mm:120 >> +#if PLATFORM(HAVE_UIKEYBOARDIMPL_SMARTINSERTDELETE_CLASS_METHOD) > > This is still not right. PLATFORM(HAVE_...)
Oh, right: #if HAVE(
Megan Gardner
Comment 14
2020-08-27 10:36:43 PDT
Created
attachment 407416
[details]
Patch
EWS
Comment 15
2020-09-01 11:13:57 PDT
Committed
r266404
: <
https://trac.webkit.org/changeset/266404
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 407416
[details]
.
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