Bug 141216

Summary: [iOS] Add support for deleteFromInputWithFlags
Product: WebKit Reporter: Enrica Casucci <enrica>
Component: WebKit Misc.Assignee: Enrica Casucci <enrica>
Status: RESOLVED FIXED    
Severity: Normal CC: ddkilzer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=158323
Attachments:
Description Flags
Patch benjamin: review+

Description Enrica Casucci 2015-02-03 15:46:58 PST
UIKit is adopting a new way to handle delete from input.
This bug track the work required in WebKit to adopt the new method.
Comment 1 Enrica Casucci 2015-02-03 15:51:41 PST
Created attachment 245981 [details]
Patch
Comment 2 Benjamin Poulain 2015-02-03 16:11:21 PST
Comment on attachment 245981 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=245981&action=review

rs=me

> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:2420
> +            // FIXME: remove deleteFromInput once UIKit adopts deleteFromInputWithFlags
> +            if ([[UIKeyboardImpl sharedInstance] respondsToSelector:@selector(deleteFromInputWithFlags:)])
> +                [[UIKeyboardImpl sharedInstance] deleteFromInputWithFlags:event.keyboardFlags];
> +            else
> +                [[UIKeyboardImpl sharedInstance] deleteFromInput];

Let's store the object from [UIKeyboardImpl sharedInstance] in a temp variable.

Is the new call gonna link?

> Source/WebKit/ios/WebView/WebUIKitDelegate.h:81
> +// FIXME: to be removed when UIKit implements the new one below.

Maybe say "deleteFromInput" is to be removed? Comments tends to move in WebKit :)

> Source/WebKit/mac/WebView/WebHTMLView.mm:5827
> +                        if ([[self _webView] respondsToSelector:@selector(deleteFromInputWithFlags:)])

[self _webView] in a temp?
Comment 3 Enrica Casucci 2015-02-03 16:13:28 PST
> Is the new call gonna link?
> 
Yes, I added it at the top of the file for staging.
Comment 4 David Kilzer (:ddkilzer) 2016-06-02 15:51:43 PDT
This landed long ago in r179580:
<http://trac.webkit.org/r179580>
Comment 5 David Kilzer (:ddkilzer) 2016-06-02 15:52:23 PDT
<rdar://problem/19130081>