| Index: third_party/WebKit/Source/modules/accessibility/AXObject.cpp
|
| diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
|
| index 09e272689e20a0a091b1d4ddf465b1347b8c5ca3..93d5da6757c41e10e7d36ddac4e1e0927bdb45e7 100644
|
| --- a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
|
| +++ b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
|
| @@ -519,9 +519,7 @@ void AXObject::updateCachedAttributeValuesIfNeeded() const
|
| m_cachedHasInheritedPresentationalRole = (inheritsPresentationalRoleFrom() != 0);
|
| m_cachedIsPresentationalChild = (ancestorForWhichThisIsAPresentationalChild() != 0);
|
| m_cachedIsIgnored = computeAccessibilityIsIgnored();
|
| - m_cachedLiveRegionRoot = isLiveRegion() ?
|
| - this :
|
| - (parentObjectIfExists() ? parentObjectIfExists()->liveRegionRoot() : 0);
|
| + m_cachedLiveRegionRoot = isLiveRegion() ? const_cast<AXObject*>(this) : (parentObjectIfExists() ? parentObjectIfExists()->liveRegionRoot() : 0);
|
| m_cachedAncestorExposesActiveDescendant = computeAncestorExposesActiveDescendant();
|
| }
|
|
|
| @@ -1099,7 +1097,7 @@ bool AXObject::isLiveRegion() const
|
| return equalIgnoringCase(liveRegion, "polite") || equalIgnoringCase(liveRegion, "assertive");
|
| }
|
|
|
| -const AXObject* AXObject::liveRegionRoot() const
|
| +AXObject* AXObject::liveRegionRoot() const
|
| {
|
| updateCachedAttributeValuesIfNeeded();
|
| return m_cachedLiveRegionRoot;
|
|
|