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

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

Issue 1841333002: Various fixes for aria-activedescendant. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed some Blink tests. Created 4 years, 8 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 6b72a41b323cc78f507b10456c174ccb274cb212..6cc68f4bfc659ef37331554fcbf18e82c7a6385a 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.h
@@ -648,6 +648,8 @@ public:
void setLastKnownIsIgnoredValue(bool);
bool hasInheritedPresentationalRole() const;
bool isPresentationalChild() const;
+ bool ancestorExposesActiveDescendant() const;
+ bool computeAncestorExposesActiveDescendant() const;
//
// Accessible name calculation
@@ -742,7 +744,7 @@ public:
virtual String stringValue() const { return String(); }
// ARIA attributes.
- virtual AXObject* activeDescendant() const { return 0; }
+ virtual AXObject* activeDescendant() const { return nullptr; }
virtual String ariaAutoComplete() const { return String(); }
virtual String ariaDescribedByAttribute() const { return String(); }
virtual void ariaFlowToElements(AXObjectVector&) const { }
@@ -759,7 +761,7 @@ public:
virtual AccessibilityRole ariaRoleAttribute() const { return UnknownRole; }
virtual bool ariaRoleHasPresentationalChildren() const { return false; }
virtual AXObject* ancestorForWhichThisIsAPresentationalChild() const { return 0; }
- virtual bool shouldFocusActiveDescendant() const { return false; }
+ bool supportsActiveDescendant() const;
bool supportsARIAAttributes() const;
virtual bool supportsARIADragging() const { return false; }
virtual bool supportsARIADropping() const { return false; }
@@ -937,6 +939,7 @@ protected:
mutable bool m_cachedIsDescendantOfDisabledNode : 1;
mutable bool m_cachedHasInheritedPresentationalRole : 1;
mutable bool m_cachedIsPresentationalChild : 1;
+ mutable bool m_cachedAncestorExposesActiveDescendant : 1;
mutable Member<const AXObject> m_cachedLiveRegionRoot;
Member<AXObjectCacheImpl> m_axObjectCache;

Powered by Google App Engine
This is Rietveld 408576698