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 6ffa89edb756feab93eca4df5675866c6babe54d..6f660edf70836e9e1a8d5eb16bff745cda6f0483 100644 |
--- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
@@ -790,7 +790,7 @@ TEST_P(VisualViewportTest, TestAttachingNewFrameSetsInnerScrollLayerSize) { |
EXPECT_SIZE_EQ(FloatSize(320, 240), visualViewport.ScrollLayer()->Size()); |
EXPECT_EQ(static_cast<int>(CompositorSubElementId::kViewport), |
- visualViewport.ScrollLayer()->GetElementId().secondaryId); |
+ visualViewport.ScrollLayer()->GetElementId() % 4); |
suzyh_UTC10 (ex-contributor)
2017/05/05 04:27:31
Please explain this piece of magic with variable/m
chrishtr
2017/05/05 05:34:52
Done.
|
// Ensure the location and scale were reset. |
EXPECT_SIZE_EQ(FloatSize(), visualViewport.GetScrollOffset()); |