Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DAPITest.cpp |
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DAPITest.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DAPITest.cpp |
index 7b38498ab83cbef6661d94ea2076f583f10cfcf6..ab5e80795f9a302783699dcaacc524e768a83ad6 100644 |
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DAPITest.cpp |
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DAPITest.cpp |
@@ -296,10 +296,11 @@ TEST_F(CanvasRenderingContext2DAPITest, AccessibilityRectTestForAddHitRegion) |
AXObjectCacheImpl* axObjectCache = toAXObjectCacheImpl(document().existingAXObjectCache()); |
AXObject* axObject = axObjectCache->getOrCreate(buttonElement); |
- EXPECT_EQ(25, axObject->elementRect().x().toInt()); |
- EXPECT_EQ(25, axObject->elementRect().y().toInt()); |
- EXPECT_EQ(40, axObject->elementRect().width().toInt()); |
- EXPECT_EQ(40, axObject->elementRect().height().toInt()); |
+ LayoutRect axBounds = axObject->getBoundsInFrameCoordinates(); |
+ EXPECT_EQ(25, axBounds.x().toInt()); |
+ EXPECT_EQ(25, axBounds.y().toInt()); |
+ EXPECT_EQ(40, axBounds.width().toInt()); |
+ EXPECT_EQ(40, axBounds.height().toInt()); |
} |
TEST_F(CanvasRenderingContext2DAPITest, AccessibilityRectTestForDrawFocusIfNeeded) |
@@ -319,10 +320,11 @@ TEST_F(CanvasRenderingContext2DAPITest, AccessibilityRectTestForDrawFocusIfNeede |
AXObjectCacheImpl* axObjectCache = toAXObjectCacheImpl(document().existingAXObjectCache()); |
AXObject* axObject = axObjectCache->getOrCreate(buttonElement); |
- EXPECT_EQ(25, axObject->elementRect().x().toInt()); |
- EXPECT_EQ(25, axObject->elementRect().y().toInt()); |
- EXPECT_EQ(40, axObject->elementRect().width().toInt()); |
- EXPECT_EQ(40, axObject->elementRect().height().toInt()); |
+ LayoutRect axBounds = axObject->getBoundsInFrameCoordinates(); |
+ EXPECT_EQ(25, axBounds.x().toInt()); |
+ EXPECT_EQ(25, axBounds.y().toInt()); |
+ EXPECT_EQ(40, axBounds.width().toInt()); |
+ EXPECT_EQ(40, axBounds.height().toInt()); |
} |
} // namespace blink |