Changeset 160069 in webkit


Ignore:
Timestamp:
Dec 3, 2013, 9:25:13 PM (12 years ago)
Author:
Simon Fraser
Message:

WKContentView should just use InitializeWebKit2()
https://bugs.webkit.org/show_bug.cgi?id=125209

Reviewed by Benjamin Poulain.

Rather than calling an motley selection of init fuctions,
WKContentView should use the one true init function, InitializeWebKit2().

  • Shared/WebKit2Initialize.cpp: On iOS, we need to call InitWebCoreThreadSystemInterface().

(WebKit::InitializeWebKit2):

  • UIProcess/API/ios/WKContentView.mm: Remove various unused #imports.

(-[WKContentView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r160059 r160069  
     12013-12-03  Simon Fraser  <simon.fraser@apple.com>
     2
     3        WKContentView should just use InitializeWebKit2()
     4        https://bugs.webkit.org/show_bug.cgi?id=125209
     5
     6        Reviewed by Benjamin Poulain.
     7       
     8        Rather than calling an motley selection of init fuctions,
     9        WKContentView should use the one true init function, InitializeWebKit2().
     10
     11        * Shared/WebKit2Initialize.cpp: On iOS, we need to call InitWebCoreThreadSystemInterface().
     12        (WebKit::InitializeWebKit2):
     13        * UIProcess/API/ios/WKContentView.mm: Remove various unused #imports.
     14        (-[WKContentView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):
     15
    1162013-12-03  Anders Carlsson  <andersca@apple.com>
    217
  • trunk/Source/WebKit2/Shared/WebKit2Initialize.cpp

    r159001 r160069  
    3636#include "WebSystemInterface.h"
    3737#endif
     38#if PLATFORM(IOS)
     39#import <WebCore/WebCoreThreadSystemInterface.h>
     40#endif
    3841
    3942namespace WebKit {
     
    4346#if PLATFORM(MAC)
    4447    InitWebCoreSystemInterface();
     48#endif
     49#if PLATFORM(IOS)
     50    InitWebCoreThreadSystemInterface();
    4551#endif
    4652
  • trunk/Source/WebKit2/UIProcess/API/ios/WKContentView.mm

    r160031 r160069  
    2929#import "PageClientImplIOS.h"
    3030#import "RemoteLayerTreeDrawingAreaProxy.h"
    31 #import "UIWKRemoteView.h"
     31#import "WebKit2Initialize.h"
    3232#import "WKBrowsingContextControllerInternal.h"
    3333#import "WKBrowsingContextGroupPrivate.h"
     
    3939#import "WebPageGroup.h"
    4040#import "WebSystemInterface.h"
    41 #import <QuartzCore/CALayerHost.h>
    4241#import <UIKit/UIWindow_Private.h>
    4342#import <WebCore/ViewportArguments.h>
    44 #import <WebCore/WebCoreThreadSystemInterface.h>
    4543#import <wtf/RetainPtr.h>
    4644
     
    142140    self.backgroundColor = [UIColor blackColor];
    143141
    144     InitWebCoreThreadSystemInterface();
    145     InitWebCoreSystemInterface();
     142    InitializeWebKit2();
    146143    RunLoop::initializeMainRunLoop();
    147144
Note: See TracChangeset for help on using the changeset viewer.