• stkhapugin@chromium.org's avatar
    Fix URL clipping on iOS 11. · 2d55caf6
    stkhapugin@chromium.org authored
    Wraps omnibox textfield into a container that positions the textfield
    inside of itself and clips its bounds so that the optimal clipping is
    used. The clipping logic replicates that of the pre-iOS 11 solution
    with UITextField overrides that are now broken in iOS 11.
    To mask the clipped ends of the omnibox, a ClippingMaskView is used
    as a maskView of the clipping view.
    All of this is behind kClippingTextfield flag that is enabled by
    default.
    
    Bug: 749788
    Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
    Change-Id: Ia03649618397d19990d39914fe1fb1b152b2760d
    Reviewed-on: https://chromium-review.googlesource.com/779191
    Commit-Queue: Stepan Khapugin <stkhapugin@chromium.org>
    Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
    Reviewed-by: default avatarJustin Cohen <justincohen@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#525322}
    2d55caf6
clipping_mask_view.h 762 Bytes