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 26d508ee564501d5b14eaf35506be95f50cdaea7..8dff34918e0290990363a0997a55cd6d60c9d125 100644 |
--- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
@@ -2285,7 +2285,8 @@ TEST_P(VisualViewportTest, ResizeNonCompositedAndFixedBackground) { |
// Without root-layer-scrolling, the LayoutView is the size of the document |
// content so invalidating it for background-attachment: fixed |
// overinvalidates as we should only need to invalidate the viewport size. |
- int expectedHeight = rootLayerScrolling ? 430 : 1000; |
+ // With root-layer-scrolling, we should invalidate the entire viewport height. |
+ int expectedHeight = rootLayerScrolling ? pageHeight : 1000; |
// The entire viewport should have been invalidated. |
EXPECT_EQ(1u, rasterInvalidations->size()); |