summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/support/platform_support_mac.mm3
-rw-r--r--webkit/support/setup_third_party.gyp6
2 files changed, 9 insertions, 0 deletions
diff --git a/webkit/support/platform_support_mac.mm b/webkit/support/platform_support_mac.mm
index 007413c..c404342 100644
--- a/webkit/support/platform_support_mac.mm
+++ b/webkit/support/platform_support_mac.mm
@@ -8,14 +8,17 @@
#import <Foundation/Foundation.h>
#include "base/logging.h"
+#include "third_party/WebKit/WebKit/mac/WebCoreSupport/WebSystemInterface.h"
namespace webkit_support {
static NSAutoreleasePool* autorelease_pool;
void BeforeInitialize() {
+ // Need to initialize NSAutoreleasePool before InitWebCoreSystemInterface().
autorelease_pool = [[NSAutoreleasePool alloc] init];
DCHECK(autorelease_pool);
+ InitWebCoreSystemInterface();
}
void AfterIniitalize() {
diff --git a/webkit/support/setup_third_party.gyp b/webkit/support/setup_third_party.gyp
index 986a4ab..c5cce6c 100644
--- a/webkit/support/setup_third_party.gyp
+++ b/webkit/support/setup_third_party.gyp
@@ -50,6 +50,12 @@
'<!@(<(list_headers_cmd) <(DEPTH)/public/x11/)',
],
},
+ {
+ 'destination': '<(DEPTH)/third_party/WebKit/WebKit/mac/WebCoreSupport',
+ 'files': [
+ '<(DEPTH)/../mac/WebCoreSupport/WebSystemInterface.h',
+ ],
+ },
]
},
],