Index: Source/web/tests/ScrollingCoordinatorChromiumTest.cpp |
diff --git a/Source/web/tests/ScrollingCoordinatorChromiumTest.cpp b/Source/web/tests/ScrollingCoordinatorChromiumTest.cpp |
index b870c7348ba736856c3500457bcd8218500612ab..8d150f39ca02aba2613205a5840642c9a3fd41fc 100644 |
--- a/Source/web/tests/ScrollingCoordinatorChromiumTest.cpp |
+++ b/Source/web/tests/ScrollingCoordinatorChromiumTest.cpp |
@@ -258,7 +258,7 @@ TEST_F(ScrollingCoordinatorChromiumTest, updateEventHandlersDuringTeardown) |
// Simulate detaching the document from its DOM window. This should not |
// cause a crash when the WebViewImpl is closed by the test runner. |
- frame()->document()->clearDOMWindow(); |
+ frame()->document()->prepareForDestruction(); |
} |
TEST_F(ScrollingCoordinatorChromiumTest, clippedBodyTest) |