Changeset 269529 in webkit


Ignore:
Timestamp:
Nov 6, 2020 12:21:44 PM (3 years ago)
Author:
achristensen@apple.com
Message:

Fix build after adding files to UIProcess/API/Cocoa
https://bugs.webkit.org/show_bug.cgi?id=218664

There is some code that assumes that unified sources always combine sources into the same translation units.
inspectorWebView is used from _WKInspectorTesting.mm, but only defined in _WKInspector.mm so it should be added to a header.
_WKUserContentWorld also doesn't include WKObject.h or RetainPtr.h but uses both.

  • UIProcess/API/Cocoa/_WKInspector.mm:

(-[_WKInspector inspectorWebView]): Deleted.

  • UIProcess/API/Cocoa/_WKInspectorPrivateForTesting.h:
  • UIProcess/API/Cocoa/_WKInspectorTesting.mm:

(-[_WKInspector inspectorWebView]):

  • UIProcess/API/Cocoa/_WKUserContentWorldInternal.h:
Location:
trunk/Source/WebKit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r269526 r269529  
     12020-11-06  Alex Christensen  <achristensen@webkit.org>
     2
     3        Fix build after adding files to UIProcess/API/Cocoa
     4        https://bugs.webkit.org/show_bug.cgi?id=218664
     5
     6        There is some code that assumes that unified sources always combine sources into the same translation units.
     7        inspectorWebView is used from _WKInspectorTesting.mm, but only defined in _WKInspector.mm so it should be added to a header.
     8        _WKUserContentWorld also doesn't include WKObject.h or RetainPtr.h but uses both.
     9
     10        * UIProcess/API/Cocoa/_WKInspector.mm:
     11        (-[_WKInspector inspectorWebView]): Deleted.
     12        * UIProcess/API/Cocoa/_WKInspectorPrivateForTesting.h:
     13        * UIProcess/API/Cocoa/_WKInspectorTesting.mm:
     14        (-[_WKInspector inspectorWebView]):
     15        * UIProcess/API/Cocoa/_WKUserContentWorldInternal.h:
     16
    1172020-11-06  Wenson Hsieh  <wenson_hsieh@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKInspector.mm

    r269524 r269529  
    3232#import "WebProcessProxy.h"
    3333#import "_WKFrameHandleInternal.h"
     34#import "_WKInspectorPrivateForTesting.h"
    3435#import <WebCore/FrameIdentifier.h>
    3536#import <wtf/HashMap.h>
     
    5960{
    6061    if (auto* page = _inspector->inspectedPage())
    61         return fromWebPageProxy(*page);
    62     return nil;
    63 }
    64 
    65 - (WKWebView *)inspectorWebView
    66 {
    67     if (auto* page = _inspector->inspectorPage())
    6862        return fromWebPageProxy(*page);
    6963    return nil;
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKInspectorPrivateForTesting.h

    r267411 r269529  
    2828@interface _WKInspector (WKTesting)
    2929- (void)_openURLExternallyForTesting:(NSURL *)url useFrontendAPI:(BOOL)useFrontendAPI;
     30- (WKWebView *)inspectorWebView;
    3031@end
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKInspectorTesting.mm

    r267411 r269529  
    2626#import "config.h"
    2727
    28 #import "WKWebView.h"
     28#import "WKWebViewInternal.h"
    2929#import "_WKInspectorInternal.h"
    3030#import "_WKInspectorPrivateForTesting.h"
     
    4040@implementation _WKInspector (WKTesting)
    4141
     42- (WKWebView *)inspectorWebView
     43{
     44    if (auto* page = _inspector->inspectorPage())
     45        return fromWebPageProxy(*page);
     46    return nil;
     47}
     48
    4249- (void)_openURLExternallyForTesting:(NSURL *)url useFrontendAPI:(BOOL)useFrontendAPI
    4350{
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKUserContentWorldInternal.h

    r259843 r269529  
    2424 */
    2525
     26#import "WKObject.h"
    2627#import "_WKUserContentWorld.h"
     28
     29#import <wtf/RetainPtr.h>
    2730
    2831@class WKContentWorld;
Note: See TracChangeset for help on using the changeset viewer.