| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 return; | 512 return; |
| 513 | 513 |
| 514 m_lastModificationCount = cache.modificationCount(); | 514 m_lastModificationCount = cache.modificationCount(); |
| 515 m_cachedBackgroundColor = computeBackgroundColor(); | 515 m_cachedBackgroundColor = computeBackgroundColor(); |
| 516 m_cachedIsInertOrAriaHidden = computeIsInertOrAriaHidden(); | 516 m_cachedIsInertOrAriaHidden = computeIsInertOrAriaHidden(); |
| 517 m_cachedIsDescendantOfLeafNode = (leafNodeAncestor() != 0); | 517 m_cachedIsDescendantOfLeafNode = (leafNodeAncestor() != 0); |
| 518 m_cachedIsDescendantOfDisabledNode = (disabledAncestor() != 0); | 518 m_cachedIsDescendantOfDisabledNode = (disabledAncestor() != 0); |
| 519 m_cachedHasInheritedPresentationalRole = (inheritsPresentationalRoleFrom() !
= 0); | 519 m_cachedHasInheritedPresentationalRole = (inheritsPresentationalRoleFrom() !
= 0); |
| 520 m_cachedIsPresentationalChild = (ancestorForWhichThisIsAPresentationalChild(
) != 0); | 520 m_cachedIsPresentationalChild = (ancestorForWhichThisIsAPresentationalChild(
) != 0); |
| 521 m_cachedIsIgnored = computeAccessibilityIsIgnored(); | 521 m_cachedIsIgnored = computeAccessibilityIsIgnored(); |
| 522 m_cachedLiveRegionRoot = isLiveRegion() ? | 522 m_cachedLiveRegionRoot = isLiveRegion() ? const_cast<AXObject*>(this) : (par
entObjectIfExists() ? parentObjectIfExists()->liveRegionRoot() : 0); |
| 523 this : | |
| 524 (parentObjectIfExists() ? parentObjectIfExists()->liveRegionRoot() : 0); | |
| 525 m_cachedAncestorExposesActiveDescendant = computeAncestorExposesActiveDescen
dant(); | 523 m_cachedAncestorExposesActiveDescendant = computeAncestorExposesActiveDescen
dant(); |
| 526 } | 524 } |
| 527 | 525 |
| 528 bool AXObject::accessibilityIsIgnoredByDefault(IgnoredReasons* ignoredReasons) c
onst | 526 bool AXObject::accessibilityIsIgnoredByDefault(IgnoredReasons* ignoredReasons) c
onst |
| 529 { | 527 { |
| 530 return defaultObjectInclusion(ignoredReasons) == IgnoreObject; | 528 return defaultObjectInclusion(ignoredReasons) == IgnoreObject; |
| 531 } | 529 } |
| 532 | 530 |
| 533 AXObjectInclusion AXObject::accessibilityPlatformIncludesObject() const | 531 AXObjectInclusion AXObject::accessibilityPlatformIncludesObject() const |
| 534 { | 532 { |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1092 } | 1090 } |
| 1093 return 0; | 1091 return 0; |
| 1094 } | 1092 } |
| 1095 | 1093 |
| 1096 bool AXObject::isLiveRegion() const | 1094 bool AXObject::isLiveRegion() const |
| 1097 { | 1095 { |
| 1098 const AtomicString& liveRegion = liveRegionStatus(); | 1096 const AtomicString& liveRegion = liveRegionStatus(); |
| 1099 return equalIgnoringCase(liveRegion, "polite") || equalIgnoringCase(liveRegi
on, "assertive"); | 1097 return equalIgnoringCase(liveRegion, "polite") || equalIgnoringCase(liveRegi
on, "assertive"); |
| 1100 } | 1098 } |
| 1101 | 1099 |
| 1102 const AXObject* AXObject::liveRegionRoot() const | 1100 AXObject* AXObject::liveRegionRoot() const |
| 1103 { | 1101 { |
| 1104 updateCachedAttributeValuesIfNeeded(); | 1102 updateCachedAttributeValuesIfNeeded(); |
| 1105 return m_cachedLiveRegionRoot; | 1103 return m_cachedLiveRegionRoot; |
| 1106 } | 1104 } |
| 1107 | 1105 |
| 1108 const AtomicString& AXObject::containerLiveRegionStatus() const | 1106 const AtomicString& AXObject::containerLiveRegionStatus() const |
| 1109 { | 1107 { |
| 1110 updateCachedAttributeValuesIfNeeded(); | 1108 updateCachedAttributeValuesIfNeeded(); |
| 1111 return m_cachedLiveRegionRoot ? m_cachedLiveRegionRoot->liveRegionStatus() :
nullAtom; | 1109 return m_cachedLiveRegionRoot ? m_cachedLiveRegionRoot->liveRegionStatus() :
nullAtom; |
| 1112 } | 1110 } |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1750 | 1748 |
| 1751 DEFINE_TRACE(AXObject) | 1749 DEFINE_TRACE(AXObject) |
| 1752 { | 1750 { |
| 1753 visitor->trace(m_children); | 1751 visitor->trace(m_children); |
| 1754 visitor->trace(m_parent); | 1752 visitor->trace(m_parent); |
| 1755 visitor->trace(m_cachedLiveRegionRoot); | 1753 visitor->trace(m_cachedLiveRegionRoot); |
| 1756 visitor->trace(m_axObjectCache); | 1754 visitor->trace(m_axObjectCache); |
| 1757 } | 1755 } |
| 1758 | 1756 |
| 1759 } // namespace blink | 1757 } // namespace blink |
| OLD | NEW |