Bug 132454

Summary: REGRESSION (WebKit2) Need to support Learn button
Product: WebKit Reporter: Enrica Casucci <enrica>
Component: WebKit2Assignee: Enrica Casucci <enrica>
Status: RESOLVED FIXED    
Severity: Normal Keywords: InRadar
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: iPhone / iPad   
OS: Unspecified   
Attachments:
Description Flags
Patch benjamin: review+

Description Enrica Casucci 2014-05-01 18:07:01 PDT
Need to add support for the Learn button in the menu for Traditional Chinese.

<rdar://problem/16778889>
Comment 1 Enrica Casucci 2014-05-01 18:11:40 PDT
Created attachment 230638 [details]
Patch
Comment 2 Benjamin Poulain 2014-05-01 18:21:14 PDT
Comment on attachment 230638 [details]
Patch

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

> Source/WebKit2/ChangeLog:12
> +        the button when appropriate as well as the implemetation of the action

typo: implemetation

> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:838
> +    CGRect presentationRect = _page->editorState().selectionRects[0].rect();

You don't need to create this outside of the if() branch.

The compiler cannot optimize this out because of the objc-msgsend below.

> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:920
> +        if (!UIKeyboardEnabledInputModesAllowOneToManyShortcuts())

lol at the name :)
Comment 3 Enrica Casucci 2014-05-01 18:40:53 PDT
Committed revision 168142.