| 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 3e54d0fa694925fbc891fc0633a986c0d2fd1979..f8b1a928b035d41066201e816f15ea5a775baaac 100644
|
| --- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
|
| @@ -1398,11 +1398,15 @@ TEST_P(ParameterizedVisualViewportTest, ElementBoundsInViewportSpaceAccountsForV
|
| visualViewport.setScale(2);
|
| visualViewport.setLocation(scrollDelta);
|
|
|
| - IntRect boundsInViewport = inputElement->boundsInViewportSpace();
|
| + const IntRect boundsInViewport = inputElement->boundsInViewport();
|
| + IntRect expectedBounds = bounds;
|
| + expectedBounds.scale(2.f);
|
| + IntPoint expectedScrollDelta = scrollDelta;
|
| + expectedScrollDelta.scale(2.f, 2.f);
|
|
|
| - EXPECT_POINT_EQ(IntPoint(bounds.location() - scrollDelta),
|
| + EXPECT_POINT_EQ(IntPoint(expectedBounds.location() - expectedScrollDelta),
|
| boundsInViewport.location());
|
| - EXPECT_SIZE_EQ(bounds.size(), boundsInViewport.size());
|
| + EXPECT_SIZE_EQ(expectedBounds.size(), boundsInViewport.size());
|
| }
|
|
|
| // Tests that when a new frame is created, it is created with the intended
|
|
|