Changeset 246687 in webkit


Ignore:
Timestamp:
Jun 21, 2019 12:12:44 PM (5 years ago)
Author:
Keith Rollin
Message:

Address reference to UIColor.groupTableViewBackgroundColor in WKPasswordView.mm
https://bugs.webkit.org/show_bug.cgi?id=199111
<rdar://problem/51992107>

Reviewed by Timothy Hatcher.

WKPasswordView.mm is used on iOS-family devices. However, it doesn't
build on tvOS or watchOS when "treat deprecation warnings as errors"
is enabled. This build failure is due to a reference to
UIColor.groupTableViewBackgroundColor in a branch of non-dark-mode
code. Address this by surrounding the reference with
ALLOW_DEPRECATED_DECLARATIONS_* macros.

Attempting to address the build failure by unconditionally enabling
the dark-mode code works for tvOS, but fails for watchOS due to lack
of dark-mode support on that platform.

  • UIProcess/ios/WKPasswordView.mm:

(-[WKPasswordView showInScrollView:]):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r246677 r246687  
     12019-06-21  Keith Rollin  <krollin@apple.com>
     2
     3        Address reference to UIColor.groupTableViewBackgroundColor in WKPasswordView.mm
     4        https://bugs.webkit.org/show_bug.cgi?id=199111
     5        <rdar://problem/51992107>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        WKPasswordView.mm is used on iOS-family devices. However, it doesn't
     10        build on tvOS or watchOS when "treat deprecation warnings as errors"
     11        is enabled. This build failure is due to a reference to
     12        UIColor.groupTableViewBackgroundColor in a branch of non-dark-mode
     13        code. Address this by surrounding the reference with
     14        ALLOW_DEPRECATED_DECLARATIONS_* macros.
     15
     16        Attempting to address the build failure by unconditionally enabling
     17        the dark-mode code works for tvOS, but fails for watchOS due to lack
     18        of dark-mode support on that platform.
     19
     20        * UIProcess/ios/WKPasswordView.mm:
     21        (-[WKPasswordView showInScrollView:]):
     22
    1232019-06-21  Michael Catanzaro  <mcatanzaro@igalia.com>
    224
  • trunk/Source/WebKit/UIProcess/ios/WKPasswordView.mm

    r246270 r246687  
    105105    [_scrollView setBackgroundColor:UIColor.systemGroupedBackgroundColor];
    106106#else
     107    ALLOW_DEPRECATED_DECLARATIONS_BEGIN
    107108    [_scrollView setBackgroundColor:UIColor.groupTableViewBackgroundColor];
     109    ALLOW_DEPRECATED_DECLARATIONS_END
    108110#endif
    109111
Note: See TracChangeset for help on using the changeset viewer.