Changeset 246228 in webkit


Ignore:
Timestamp:
Jun 7, 2019 6:33:38 PM (5 years ago)
Author:
timothy_horton@apple.com
Message:

Disable focus rings on WKContentView for PLATFORM(IOSMAC)
https://bugs.webkit.org/show_bug.cgi?id=198685

Reviewed by Simon Fraser.

  • Platform/spi/ios/UIKitSPI.h:
  • UIProcess/ios/WKContentView.mm:

(-[WKContentView _commonInitializationWithProcessPool:configuration:]):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r246226 r246228  
     12019-06-07  Tim Horton  <timothy_horton@apple.com>
     2
     3        Disable focus rings on WKContentView for PLATFORM(IOSMAC)
     4        https://bugs.webkit.org/show_bug.cgi?id=198685
     5
     6        Reviewed by Simon Fraser.
     7
     8        * Platform/spi/ios/UIKitSPI.h:
     9        * UIProcess/ios/WKContentView.mm:
     10        (-[WKContentView _commonInitializationWithProcessPool:configuration:]):
     11
    1122019-06-07  Megan Gardner  <megan_gardner@apple.com>
    213
  • trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h

    r246116 r246228  
    515515};
    516516
     517#if PLATFORM(IOSMAC)
     518typedef NS_ENUM(NSUInteger, UIFocusRingType) {
     519    UIFocusRingTypeNone = 1,
     520};
     521#endif
     522
    517523@interface UIView ()
    518524+ (BOOL)_isInAnimationBlock;
     
    529535- (void)_removeAllAnimations:(BOOL)includeSubviews;
    530536- (UIColor *)_inheritedInteractionTintColor;
     537#if PLATFORM(IOSMAC)
     538@property (nonatomic, getter=_focusRingType, setter=_setFocusRingType:) UIFocusRingType focusRingType;
     539#endif
    531540@end
    532541
  • trunk/Source/WebKit/UIProcess/ios/WKContentView.mm

    r246226 r246228  
    177177    self.layer.hitTestsAsOpaque = YES;
    178178
     179#if PLATFORM(IOSMAC)
     180    [self _setFocusRingType:UIFocusRingTypeNone];
     181#endif
     182
    179183#if HAVE(VISIBILITY_PROPAGATION_VIEW)
    180184    [self _setupVisibilityPropagationView];
Note: See TracChangeset for help on using the changeset viewer.