diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Tools/WebKitTestRunner/InjectedBundle/GCController.cpp | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Tools/WebKitTestRunner/InjectedBundle/GCController.cpp')
-rw-r--r-- | Tools/WebKitTestRunner/InjectedBundle/GCController.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Tools/WebKitTestRunner/InjectedBundle/GCController.cpp b/Tools/WebKitTestRunner/InjectedBundle/GCController.cpp index 10c21dba8..9358f4a0d 100644 --- a/Tools/WebKitTestRunner/InjectedBundle/GCController.cpp +++ b/Tools/WebKitTestRunner/InjectedBundle/GCController.cpp @@ -28,13 +28,13 @@ #include "InjectedBundle.h" #include "JSGCController.h" -#include <WebKit2/WKBundlePrivate.h> +#include <WebKit/WKBundlePrivate.h> namespace WTR { -PassRefPtr<GCController> GCController::create() +Ref<GCController> GCController::create() { - return adoptRef(new GCController); + return adoptRef(*new GCController); } GCController::GCController() @@ -52,17 +52,17 @@ JSClassRef GCController::wrapperClass() void GCController::collect() { - WKBundleGarbageCollectJavaScriptObjects(InjectedBundle::shared().bundle()); + WKBundleGarbageCollectJavaScriptObjects(InjectedBundle::singleton().bundle()); } void GCController::collectOnAlternateThread(bool waitUntilDone) { - WKBundleGarbageCollectJavaScriptObjectsOnAlternateThreadForDebugging(InjectedBundle::shared().bundle(), waitUntilDone); + WKBundleGarbageCollectJavaScriptObjectsOnAlternateThreadForDebugging(InjectedBundle::singleton().bundle(), waitUntilDone); } size_t GCController::getJSObjectCount() { - return WKBundleGetJavaScriptObjectsCount(InjectedBundle::shared().bundle()); + return WKBundleGetJavaScriptObjectsCount(InjectedBundle::singleton().bundle()); } // Object Creation |