Changeset 187376 in webkit


Ignore:
Timestamp:
Jul 24, 2015, 6:08:19 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Don't create UIWebFormAccessory if we don't require accessory view.
https://bugs.webkit.org/show_bug.cgi?id=147283

Don't try to intialize _formAccessoryView if requiresAccessoryView returns false since we don't
need it yet.

Patch by Yongjun Zhang <yongjun_zhang@apple.com> on 2015-07-24
Reviewed by Dan Bernstein.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView inputAccessoryView]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r187375 r187376  
     12015-07-24  Yongjun Zhang  <yongjun_zhang@apple.com>
     2
     3        Don't create UIWebFormAccessory if we don't require accessory view.
     4        https://bugs.webkit.org/show_bug.cgi?id=147283
     5
     6        Don't try to intialize _formAccessoryView if requiresAccessoryView returns false since we don't
     7        need it yet.
     8
     9        Reviewed by Dan Bernstein.
     10
     11        * UIProcess/ios/WKContentViewInteraction.mm:
     12        (-[WKContentView inputAccessoryView]):
     13
    1142015-07-24  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r187267 r187376  
    12601260- (UIView *)inputAccessoryView
    12611261{
     1262    if (![self requiresAccessoryView])
     1263        return nil;
     1264
    12621265    if (!_formAccessoryView) {
    12631266#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000
     
    12701273    }
    12711274
    1272     if (![self requiresAccessoryView])
    1273         return nil;
    1274    
    12751275    return _formAccessoryView.get();
    12761276}
Note: See TracChangeset for help on using the changeset viewer.