Index: third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp |
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp b/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp |
index f11db68f310a4d5088f44efe7b45fe10b0b5935e..70b4c8824c897533f965df84910c8196c564ce96 100644 |
--- a/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp |
+++ b/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp |
@@ -55,7 +55,7 @@ TEST_F(PaintWorkletTest, GarbageCollectionOfCSSPaintDefinition) |
ASSERT(handle.isWeak()); |
// Run a GC, persistent shouldn't have been collected yet. |
- ThreadHeap::collectAllGarbage(); |
+ ThreadState::current()-> collectAllGarbage(); |
V8GCController::collectAllGarbageForTesting(isolate); |
ASSERT(!handle.isEmpty()); |
@@ -63,7 +63,7 @@ TEST_F(PaintWorkletTest, GarbageCollectionOfCSSPaintDefinition) |
m_page.reset(); |
// Run a GC, the persistent should have been collected. |
- ThreadHeap::collectAllGarbage(); |
+ ThreadState::current()-> collectAllGarbage(); |
V8GCController::collectAllGarbageForTesting(isolate); |
ASSERT(handle.isEmpty()); |
} |