⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 197632 in webkit


Ignore:
Timestamp:
Mar 5, 2016, 8:34:16 PM (11 years ago)
Author:
weinig@apple.com
Message:

Revert usage of autofill field name for use with UITextInputTraits
until our bots can catch up.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView textInputTraits]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r197628 r197632  
     12016-03-05  Sam Weinig  <sam@webkit.org>
     2
     3        Revert usage of autofill field name for use with UITextInputTraits
     4        until our bots can catch up.
     5
     6        * UIProcess/ios/WKContentViewInteraction.mm:
     7        (-[WKContentView textInputTraits]):
     8
    192016-03-05  Chris Dumez  <cdumez@apple.com>
    210
  • trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r197628 r197632  
    28232823    }
    28242824
    2825 #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000
    2826     switch (_assistedNodeInformation.autofillFieldName) {
    2827     case WebCore::AutofillFieldName::Name:
    2828         [_traits setTextContentType:UITextContentTypeName];
    2829         break;
    2830     case WebCore::AutofillFieldName::HonorificPrefix:
    2831         [_traits setTextContentType:UITextContentTypeNamePrefix];
    2832         break;
    2833     case WebCore::AutofillFieldName::GivenName:
    2834         [_traits setTextContentType:UITextContentTypeMiddleName];
    2835         break;
    2836     case WebCore::AutofillFieldName::AdditionalName:
    2837         [_traits setTextContentType:UITextContentTypeMiddleName];
    2838         break;
    2839     case WebCore::AutofillFieldName::FamilyName:
    2840         [_traits setTextContentType:UITextContentTypeFamilyName];
    2841         break;
    2842     case WebCore::AutofillFieldName::HonorificSuffix:
    2843         [_traits setTextContentType:UITextContentTypeNameSuffix];
    2844         break;
    2845     case WebCore::AutofillFieldName::Nickname:
    2846         [_traits setTextContentType:UITextContentTypeNickname];
    2847         break;
    2848     case WebCore::AutofillFieldName::OrganizationTitle:
    2849         [_traits setTextContentType:UITextContentTypeJobTitle];
    2850         break;
    2851     case WebCore::AutofillFieldName::Organization:
    2852         [_traits setTextContentType:UITextContentTypeOrganizationName];
    2853         break;
    2854     case WebCore::AutofillFieldName::StreetAddress:
    2855         [_traits setTextContentType:UITextContentTypeFullStreetAddress];
    2856         break;
    2857     case WebCore::AutofillFieldName::AddressLine1:
    2858         [_traits setTextContentType:UITextContentTypeStreetAddressLine1];
    2859         break;
    2860     case WebCore::AutofillFieldName::AddressLine2:
    2861         [_traits setTextContentType:UITextContentTypeStreetAddressLine2];
    2862         break;
    2863     case WebCore::AutofillFieldName::AddressLevel3:
    2864         [_traits setTextContentType:UITextContentTypeSublocality];
    2865         break;
    2866     case WebCore::AutofillFieldName::AddressLevel2:
    2867         [_traits setTextContentType:UITextContentTypeAddressCity];
    2868         break;
    2869     case WebCore::AutofillFieldName::AddressLevel1:
    2870         [_traits setTextContentType:UITextContentTypeAddressState];
    2871         break;
    2872     case WebCore::AutofillFieldName::CountryName:
    2873         [_traits setTextContentType:UITextContentTypeCountryName];
    2874         break;
    2875     case WebCore::AutofillFieldName::PostalCode:
    2876         [_traits setTextContentType:UITextContentTypePostalCode];
    2877         break;
    2878     case WebCore::AutofillFieldName::Tel:
    2879         [_traits setTextContentType:UITextContentTypeTelephoneNumber];
    2880         break;
    2881     case WebCore::AutofillFieldName::Email:
    2882         [_traits setTextContentType:UITextContentTypeEmailAddress];
    2883         break;
    2884     case WebCore::AutofillFieldName::URL:
    2885         [_traits setTextContentType:UITextContentTypeURL];
    2886         break;
    2887     case WebCore::AutofillFieldName::None:
    2888     case WebCore::AutofillFieldName::Username:
    2889     case WebCore::AutofillFieldName::NewPassword:
    2890     case WebCore::AutofillFieldName::CurrentPassword:
    2891     case WebCore::AutofillFieldName::AddressLine3:
    2892     case WebCore::AutofillFieldName::AddressLevel4:
    2893     case WebCore::AutofillFieldName::Country:
    2894     case WebCore::AutofillFieldName::CcName:
    2895     case WebCore::AutofillFieldName::CcGivenName:
    2896     case WebCore::AutofillFieldName::CcAdditionalName:
    2897     case WebCore::AutofillFieldName::CcFamilyName:
    2898     case WebCore::AutofillFieldName::CcNumber:
    2899     case WebCore::AutofillFieldName::CcExp:
    2900     case WebCore::AutofillFieldName::CcExpMonth:
    2901     case WebCore::AutofillFieldName::CcExpYear:
    2902     case WebCore::AutofillFieldName::CcCsc:
    2903     case WebCore::AutofillFieldName::CcType:
    2904     case WebCore::AutofillFieldName::TransactionCurrency:
    2905     case WebCore::AutofillFieldName::TransactionAmount:
    2906     case WebCore::AutofillFieldName::Language:
    2907     case WebCore::AutofillFieldName::Bday:
    2908     case WebCore::AutofillFieldName::BdayDay:
    2909     case WebCore::AutofillFieldName::BdayMonth:
    2910     case WebCore::AutofillFieldName::BdayYear:
    2911     case WebCore::AutofillFieldName::Sex:
    2912     case WebCore::AutofillFieldName::Photo:
    2913     case WebCore::AutofillFieldName::TelCountryCode:
    2914     case WebCore::AutofillFieldName::TelNational:
    2915     case WebCore::AutofillFieldName::TelAreaCode:
    2916     case WebCore::AutofillFieldName::TelLocal:
    2917     case WebCore::AutofillFieldName::TelLocalPrefix:
    2918     case WebCore::AutofillFieldName::TelLocalSuffix:
    2919     case WebCore::AutofillFieldName::TelExtension:
    2920     case WebCore::AutofillFieldName::Impp:
    2921         break;
    2922     };
    2923 #endif
    2924 
    29252825    return _traits.get();
    29262826}
Note: See TracChangeset for help on using the changeset viewer.