Index: Source/modules/indexeddb/IDBRequestTest.cpp |
diff --git a/Source/modules/indexeddb/IDBRequestTest.cpp b/Source/modules/indexeddb/IDBRequestTest.cpp |
index d346d6c054fb79716aa3585e6731ca232b81fec3..34eeb99bf12f739f086f9d7b537f881b9b1e0b48 100644 |
--- a/Source/modules/indexeddb/IDBRequestTest.cpp |
+++ b/Source/modules/indexeddb/IDBRequestTest.cpp |
@@ -53,17 +53,13 @@ |
virtual void close() OVERRIDE { } |
}; |
-class NullExecutionContext FINAL : public RefCountedWillBeGarbageCollectedFinalized<NullExecutionContext>, public ExecutionContext { |
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NullExecutionContext); |
+class NullExecutionContext FINAL : public ExecutionContext, public RefCounted<NullExecutionContext> { |
public: |
- void trace(Visitor* visitor) { ExecutionContext::trace(visitor); } |
-#if !ENABLE(OILPAN) |
using RefCounted<NullExecutionContext>::ref; |
using RefCounted<NullExecutionContext>::deref; |
virtual void refExecutionContext() OVERRIDE { ref(); } |
virtual void derefExecutionContext() OVERRIDE { deref(); } |
-#endif |
virtual EventQueue* eventQueue() const OVERRIDE { return m_queue.get(); } |
NullExecutionContext(); |
@@ -80,7 +76,7 @@ |
public: |
IDBRequestTest() |
: m_scope(v8::Isolate::GetCurrent()) |
- , m_executionContext(adoptRefWillBeNoop(new NullExecutionContext())) |
+ , m_executionContext(adoptRef(new NullExecutionContext())) |
{ |
m_scope.scriptState()->setExecutionContext(m_executionContext.get()); |
} |
@@ -96,7 +92,7 @@ |
private: |
V8TestingScope m_scope; |
- RefPtrWillBePersistent<ExecutionContext> m_executionContext; |
+ RefPtr<ExecutionContext> m_executionContext; |
}; |
TEST_F(IDBRequestTest, EventsAfterStopping) |