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

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

Issue 2867073003: Name calculation should not include nameFrom:author descendants. (Closed)
Patch Set: Rebase Created 3 years, 7 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
Index: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
index e9c48c953843f37cea9a02bec44fee6f5726f48e..803370747873c15192e64a72b909aa4aea3faaa8 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -295,14 +295,15 @@ AccessibilityRole AXLayoutObject::DetermineAccessibilityRole() {
if (role != kUnknownRole)
return role;
+ // These are layout containers added by blink
if (layout_object_->IsLayoutBlockFlow())
- return kGroupRole;
+ return kGenericContainerRole;
// If the element does not have role, but it has ARIA attributes or is an
// in-page link target, accessibility should fallback to exposing it as a
- // group.
+ // generic container.
if (IsInPageLinkTarget() || SupportsARIAAttributes())
- return kGroupRole;
+ return kGenericContainerRole;
return kUnknownRole;
}

Powered by Google App Engine
This is Rietveld 408576698