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
Patch (1.96 KB, patch)
2020-08-26 16:28 PDT, Megan Gardner
no flags
Patch (2.04 KB, patch)
2020-08-26 16:39 PDT, Megan Gardner
no flags
Patch (1.95 KB, patch)
2020-08-26 17:13 PDT, Megan Gardner
no flags
Patch (2.86 KB, patch)
2020-08-26 18:04 PDT, Megan Gardner
no flags
Patch (2.87 KB, patch)
2020-08-26 18:06 PDT, Megan Gardner
no flags
Patch (2.86 KB, patch)
2020-08-27 10:36 PDT, Megan Gardner
no flags
Megan Gardner
Comment 1 2020-08-26 16:11:09 PDT
Megan Gardner
Comment 2 2020-08-26 16:11:48 PDT
Megan Gardner
Comment 3 2020-08-26 16:28:01 PDT
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
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
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
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
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
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.