summaryrefslogtreecommitdiff
path: root/Tools/WebKitTestRunner/InjectedBundle/GCController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/WebKitTestRunner/InjectedBundle/GCController.cpp')
-rw-r--r--Tools/WebKitTestRunner/InjectedBundle/GCController.cpp12
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