Skip to content

Commit ec0dc1f

Browse files
committed
2010-04-28 Simon Fraser <simon.fraser@apple.com>
Reviewed by Sam Weinig. <rdar://problem/7918719> ASSERT(isMainThread()) from Font::setShouldUseSmoothing() Ensure that the WebView +initialize method initializes threading, so that things are correctly initialized when the first call into the WebKit framework is via a WebView class method. * WebView/WebView.mm: (+[WebView initialize]): Canonical link: https://commits.webkit.org/49701@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@58432 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent d1a7095 commit ec0dc1f

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

WebKit/mac/ChangeLog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
2010-04-28 Simon Fraser <simon.fraser@apple.com>
2+
3+
Reviewed by Sam Weinig.
4+
5+
<rdar://problem/7918719> ASSERT(isMainThread()) from Font::setShouldUseSmoothing()
6+
7+
Ensure that the WebView +initialize method initializes threading, so that things are correctly
8+
initialized when the first call into the WebKit framework is via a WebView class method.
9+
10+
* WebView/WebView.mm:
11+
(+[WebView initialize]):
12+
113
2010-04-28 Darin Adler <darin@apple.com>
214

315
Reviewed by Adele Peterson.

WebKit/mac/WebView/WebView.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,15 @@
158158
#import <objc/objc-runtime.h>
159159
#import <runtime/ArrayPrototype.h>
160160
#import <runtime/DateInstance.h>
161+
#import <runtime/InitializeThreading.h>
161162
#import <runtime/JSLock.h>
162163
#import <runtime/JSValue.h>
163164
#import <wtf/Assertions.h>
164165
#import <wtf/HashTraits.h>
165166
#import <wtf/RefCountedLeakCounter.h>
166167
#import <wtf/RefPtr.h>
167168
#import <wtf/StdLibExtras.h>
169+
#import <wtf/Threading.h>
168170

169171
#if ENABLE(DASHBOARD_SUPPORT)
170172
#import <WebKit/WebDashboardRegion.h>
@@ -2458,6 +2460,8 @@ + (void)initialize
24582460
initialized = YES;
24592461

24602462
InitWebCoreSystemInterface();
2463+
JSC::initializeThreading();
2464+
WTF::initializeMainThreadToProcessMainThread();
24612465

24622466
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_applicationWillTerminate) name:NSApplicationWillTerminateNotification object:NSApp];
24632467
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_preferencesChangedNotification:) name:WebPreferencesChangedNotification object:nil];

0 commit comments

Comments
 (0)