Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObject.cpp

Issue 2955303002: Bounding boxes in the accessibility tree should always be relative to a box. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/accessibility/bounds-calc.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/accessibility/AXObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
index f7145d1222ce32544ce1452749a5150af2eccd15..8a991938814dfc4e34e238e9bf31a03c04240a13 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
@@ -1527,8 +1527,7 @@ void AXObject::GetRelativeBounds(AXObject** out_container,
LayoutObject* container_layout_object = nullptr;
while (container) {
container_layout_object = container->GetLayoutObject();
- if (container_layout_object &&
- container_layout_object->IsBoxModelObject() &&
+ if (container_layout_object && container_layout_object->IsBox() &&
layout_object->IsDescendantOf(container_layout_object)) {
if (container->IsScrollableContainer() ||
container_layout_object->HasLayer())
« no previous file with comments | « third_party/WebKit/LayoutTests/accessibility/bounds-calc.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698