Changeset 95368 in webkit
- Timestamp:
- Sep 16, 2011 10:30:14 PM (13 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r95359 r95368 1 2011-09-16 Dmitry Lomov <dslomov@google.com> 2 3 https://bugs.webkit.org/show_bug.cgi?id=67733 4 [Chromium] Separate WebKit initialization and V8 initialization in chromium port. 5 6 Reviewed by Darin Fisher. 7 8 * public/WebKit.h: 9 * src/WebKit.cpp: 10 (WebKit::initialize): 11 (WebKit::initializeWithoutV8): 12 1 13 2011-09-16 Vincent Scheib <scheib@chromium.org> 2 14 -
trunk/Source/WebKit/chromium/public/WebKit.h
r94479 r95368 43 43 WEBKIT_EXPORT void initialize(WebKitPlatformSupport*); 44 44 45 // Must be called on the thread that will be the main WebKit thread before 46 // using any other WebKit APIs. The provided WebKitPlatformSupport; must be 47 // non-null and must remain valid until the current thread calls shutdown. 48 // 49 // This is a special variant of initialize that does not intitialize V8. 50 WEBKIT_EXPORT void initializeWithoutV8(WebKitPlatformSupport*); 51 45 52 // Once shutdown, the WebKitPlatformSupport passed to initialize will no longer 46 53 // be accessed. No other WebKit objects should be in use when this function is -
trunk/Source/WebKit/chromium/src/WebKit.cpp
r94479 r95368 69 69 void initialize(WebKitPlatformSupport* webKitPlatformSupport) 70 70 { 71 initializeWithoutV8(webKitPlatformSupport); 72 73 v8::V8::SetEntropySource(&generateEntropy); 74 v8::V8::Initialize(); 75 WebCore::V8BindingPerIsolateData::ensureInitialized(v8::Isolate::GetCurrent()); 76 } 77 78 void initializeWithoutV8(WebKitPlatformSupport* webKitPlatformSupport) 79 { 71 80 ASSERT(!s_webKitInitialized); 72 81 s_webKitInitialized = true; … … 89 98 WebCore::UTF8Encoding(); 90 99 91 v8::V8::SetEntropySource(&generateEntropy); 92 v8::V8::Initialize(); 93 WebCore::V8BindingPerIsolateData::ensureInitialized(v8::Isolate::GetCurrent()); 100 94 101 } 102 95 103 96 104 void shutdown()
Note: See TracChangeset
for help on using the changeset viewer.