Index: ui/views/accessibility/native_view_accessibility_unittest.cc |
diff --git a/ui/views/accessibility/native_view_accessibility_unittest.cc b/ui/views/accessibility/native_view_accessibility_unittest.cc |
index 92eb0035e57b2067f1415f0c2799fa9a4bc4b843..95b9ec8d7d7b37de342305c46ac2b8004589e75a 100644 |
--- a/ui/views/accessibility/native_view_accessibility_unittest.cc |
+++ b/ui/views/accessibility/native_view_accessibility_unittest.cc |
@@ -86,7 +86,9 @@ TEST_F(NativeViewAccessibilityTest, RoleShouldMatch) { |
TEST_F(NativeViewAccessibilityTest, BoundsShouldMatch) { |
gfx::Rect bounds = |
gfx::ToEnclosingRect(button_accessibility()->GetData().location); |
- bounds.Offset(button_accessibility()->GetGlobalCoordinateOffset()); |
+ gfx::Rect screen_bounds = button_accessibility()->GetScreenBoundsRect(); |
+ bounds.Offset(screen_bounds.x(), screen_bounds.y()); |
+ |
EXPECT_EQ(button_->GetBoundsInScreen(), bounds); |
} |