Changeset 256345 in webkit


Ignore:
Timestamp:
Feb 11, 2020 1:09:21 PM (4 years ago)
Author:
achristensen@apple.com
Message:

Deprecate _WKUserContentWorld replaced by WKContentWorld
https://bugs.webkit.org/show_bug.cgi?id=207514

Add the rest of the SPI to convert between the two.

  • UIProcess/API/Cocoa/_WKUserContentWorld.h:
  • UIProcess/API/Cocoa/_WKUserContentWorld.mm:

(-[_WKUserContentWorld contentWorld]):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r256332 r256345  
     12020-02-11  Alex Christensen  <achristensen@webkit.org>
     2
     3        Deprecate _WKUserContentWorld replaced by WKContentWorld
     4        https://bugs.webkit.org/show_bug.cgi?id=207514
     5
     6        Add the rest of the SPI to convert between the two.
     7
     8        * UIProcess/API/Cocoa/_WKUserContentWorld.h:
     9        * UIProcess/API/Cocoa/_WKUserContentWorld.mm:
     10        (-[_WKUserContentWorld contentWorld]):
     11
    1122020-02-11  Alex Christensen  <achristensen@webkit.org>
    213
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKUserContentWorld.h

    r256332 r256345  
    2828NS_ASSUME_NONNULL_BEGIN
    2929
     30@class WKContentWorld;
     31
    3032WK_CLASS_DEPRECATED_WITH_REPLACEMENT("WKContentWorld", macos(10.12, WK_MAC_TBA), ios(10.0, WK_IOS_TBA))
    3133@interface _WKUserContentWorld : NSObject
     
    3436+ (_WKUserContentWorld *)normalWorld;
    3537
     38@property (nonatomic, copy, readonly) WKContentWorld *contentWorld WK_API_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA);
     39
    3640@property (nullable, nonatomic, readonly, copy) NSString *name;
    3741
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKUserContentWorld.mm

    r256332 r256345  
    2727#import "_WKUserContentWorldInternal.h"
    2828
     29#import "WKContentWorldInternal.h"
     30
    2931ALLOW_DEPRECATED_IMPLEMENTATIONS_BEGIN
    3032@implementation _WKUserContentWorld
     
    5456}
    5557
     58- (WKContentWorld *)contentWorld
     59{
     60    return wrapper(API::ContentWorld::fromUserContentWorld(*_userContentWorld));
     61}
     62
    5663#pragma mark WKObject protocol implementation
    5764
Note: See TracChangeset for help on using the changeset viewer.