Index: Source/core/workers/WorkerGlobalScope.cpp |
diff --git a/Source/core/workers/WorkerGlobalScope.cpp b/Source/core/workers/WorkerGlobalScope.cpp |
index a517c8704513d3fd0cbcb0632728b7eb664c560b..36ccdf0a9b42d0ba99a9ecc9cc6e964f7b74ad73 100644 |
--- a/Source/core/workers/WorkerGlobalScope.cpp |
+++ b/Source/core/workers/WorkerGlobalScope.cpp |
@@ -56,6 +56,8 @@ |
namespace WebCore { |
+DEFINE_GC_INFO(WorkerGlobalScope); |
+ |
class CloseWorkerGlobalScopeTask : public ExecutionContextTask { |
public: |
static PassOwnPtr<CloseWorkerGlobalScopeTask> create() |
@@ -205,7 +207,7 @@ void WorkerGlobalScope::importScripts(const Vector<String>& urls, ExceptionState |
Vector<KURL>::const_iterator end = completedURLs.end(); |
for (Vector<KURL>::const_iterator it = completedURLs.begin(); it != end; ++it) { |
- RefPtr<WorkerScriptLoader> scriptLoader(WorkerScriptLoader::create()); |
+ RefPtrWillBeRawPtr<WorkerScriptLoader> scriptLoader(WorkerScriptLoader::create()); |
scriptLoader->setTargetType(ResourceRequest::TargetIsScript); |
scriptLoader->loadSynchronously(executionContext(), *it, AllowCrossOriginRequests); |
@@ -280,4 +282,11 @@ WorkerEventQueue* WorkerGlobalScope::eventQueue() const |
return m_eventQueue.get(); |
} |
+void WorkerGlobalScope::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_console); |
+ visitor->trace(m_location); |
+ visitor->trace(m_navigator); |
+} |
+ |
} // namespace WebCore |