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 cd28ae53a6ec76c93cba0289fb43813867d827d2..07a52202cb2b3fe9093e63d4b4346c66c2c093e6 100644 |
--- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
@@ -792,7 +792,8 @@ TEST_P(VisualViewportTest, TestAttachingNewFrameSetsInnerScrollLayerSize) { |
EXPECT_SIZE_EQ(FloatSize(320, 240), visualViewport.ScrollLayer()->Size()); |
EXPECT_EQ(static_cast<int>(CompositorSubElementId::kViewport), |
- visualViewport.ScrollLayer()->GetElementId().secondaryId); |
+ SubElementIdFromCompositorElementId( |
+ visualViewport.ScrollLayer()->GetElementId())); |
// Ensure the location and scale were reset. |
EXPECT_SIZE_EQ(FloatSize(), visualViewport.GetScrollOffset()); |