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

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

Issue 2439203003: Reland of Accessibility: Ignore all anonymous blocks (Closed)
Patch Set: Rebased. Created 4 years, 2 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 b16cd1d4ea9660f9d12fc6eee4155edd7b6e5677..2cccbc35bf9f0e8bf1c4a3d7fa8f155c876f9869 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -500,6 +500,9 @@ bool AXLayoutObject::computeAccessibilityIsIgnored(
if (decision == IgnoreObject)
return true;
+ if (m_layoutObject->isAnonymousBlock())
+ return true;
+
// If this element is within a parent that cannot have children, it should not
// be exposed.
if (isDescendantOfLeafNode()) {

Powered by Google App Engine
This is Rietveld 408576698