Index: third_party/WebKit/Source/web/tests/WebViewTest.cpp |
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp |
index b46bb927fd28696d16ef8cf5e0a19098fcacd4a0..af80d416800f2ea3abeeee853958e92831e21660 100644 |
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp |
@@ -2709,7 +2709,7 @@ TEST_F(WebViewTest, DeleteElementWithRegisteredHandler) |
// checking below. We do a precise GC (collectAllGarbage does not scan the stack) |
// to ensure the div element dies. This is also why the Document is in a Persistent |
// since we want that to stay around. |
- ThreadHeap::collectAllGarbage(); |
+ ThreadState::current()-> collectAllGarbage(); |
EXPECT_FALSE(registry.hasEventHandlers(EventHandlerRegistry::ScrollEvent)); |
} |