Chromium Code Reviews| Index: Source/modules/accessibility/AXObject.h |
| diff --git a/Source/modules/accessibility/AXObject.h b/Source/modules/accessibility/AXObject.h |
| index e00d458144127ff9ad748be01800fab8dd39117a..dc67f551659356d987b2acec9bd67117c3bbbb1f 100644 |
| --- a/Source/modules/accessibility/AXObject.h |
| +++ b/Source/modules/accessibility/AXObject.h |
| @@ -378,6 +378,7 @@ public: |
| virtual bool isNonNativeTextControl() const { return false; } // contenteditable or role=textbox |
| virtual bool isPasswordField() const { return false; } |
| virtual bool isPasswordFieldAndShouldHideValue() const; |
| + bool isPresentation() const { return roleValue() == NoneRole || roleValue() == PresentationalRole; } |
|
dmazzoni
2015/04/01 15:27:55
Name this isPresentational() to be consistent with
je_julie(Not used)
2015/04/02 05:51:28
Done.
|
| virtual bool isProgressIndicator() const { return false; } |
| bool isRadioButton() const { return roleValue() == RadioButtonRole; } |
| bool isScrollbar() const { return roleValue() == ScrollBarRole; } |
| @@ -621,6 +622,8 @@ public: |
| static const AtomicString& roleName(AccessibilityRole); |
| static bool isInsideFocusableElementOrARIAWidget(const Node&); |
| + bool hasInheritedPresentationRole() const { return m_cachedHasInheritedPresentationRole; } |
| + |
| protected: |
| AXID m_id; |
| AccessibilityChildrenVector m_children; |
| @@ -630,6 +633,7 @@ protected: |
| LayoutRect m_explicitElementRect; |
| virtual bool computeAccessibilityIsIgnored() const { return true; } |
| + virtual bool computeHasInheritedPresentationRole() const { return false; } |
| // If this object itself scrolls, return its ScrollableArea. |
| virtual ScrollableArea* getScrollableAreaIfScrollable() const { return 0; } |
| @@ -651,6 +655,7 @@ protected: |
| mutable bool m_cachedIsInertOrAriaHidden : 1; |
| mutable bool m_cachedIsDescendantOfBarrenParent : 1; |
| mutable bool m_cachedIsDescendantOfDisabledNode : 1; |
| + mutable bool m_cachedHasInheritedPresentationRole : 1; |
| mutable const AXObject* m_cachedLiveRegionRoot; |
| AXObjectCacheImpl* m_axObjectCache; |