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

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

Issue 2112243004: Ignores ARIA relations (e.g. aria-labelledby) that point to an invisible target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed invisible to hidden to match ARIA Implementation Guide. Created 4 years, 5 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/AXObject.h
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.h b/third_party/WebKit/Source/modules/accessibility/AXObject.h
index 8008f4c785812fca57202b268c6e4a4ef4b3a387..7da65fdc65bd841b81729f6fbe95c5c82bd80f32 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.h
@@ -670,6 +670,7 @@ public:
const AXObject* disabledAncestor() const;
bool lastKnownIsIgnoredValue();
void setLastKnownIsIgnoredValue(bool);
+ bool isHiddenForTextAlternativeCalculation() const;
bool hasInheritedPresentationalRole() const;
bool isPresentationalChild() const;
bool ancestorExposesActiveDescendant() const;
@@ -954,7 +955,6 @@ protected:
// Used only inside textAlternative():
static String collapseWhitespace(const String&);
static String recursiveTextAlternative(const AXObject&, bool inAriaLabelledByTraversal, AXObjectSet& visited);
- bool isHiddenForTextAlternativeCalculation() const;
String ariaTextAlternative(bool recursive, bool inAriaLabelledByTraversal, AXObjectSet& visited, AXNameFrom&, AXRelatedObjectVector*, NameSources*, bool* foundTextAlternative) const;
String textFromElements(bool inAriaLabelledByTraversal, AXObjectSet& visited, HeapVector<Member<Element>>& elements, AXRelatedObjectVector* relatedObjects) const;
void tokenVectorFromAttribute(Vector<String>&, const QualifiedName&) const;

Powered by Google App Engine
This is Rietveld 408576698