Index: third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
diff --git a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
index bc13e0e953f69508421c68c6f1252264f8686b08..0eb17a1d905767db9a942a06863a5488f9b1ffd8 100644 |
--- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
@@ -2001,6 +2001,7 @@ TEST_P(ParameterizedVisualViewportTest, ResizeWithScrollAnchoring) { |
FrameView& frameView = *webViewImpl()->mainFrameImpl()->frameView(); |
frameView.layoutViewportScrollableArea()->setScrollOffset( |
ScrollOffset(700, 500), ProgrammaticScroll); |
+ webViewImpl()->updateAllLifecyclePhases(); |
webViewImpl()->resize(IntSize(800, 300)); |
EXPECT_SIZE_EQ(ScrollOffset(700, 200), |