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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXObject.cpp

Issue 2163673003: Made ARIA alerts have an implicit aria-atomic of true and strengthened tests concerning aria-atomic… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed aria-atomic test. 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 1111
1112 const AtomicString& AXObject::containerLiveRegionRelevant() const 1112 const AtomicString& AXObject::containerLiveRegionRelevant() const
1113 { 1113 {
1114 updateCachedAttributeValuesIfNeeded(); 1114 updateCachedAttributeValuesIfNeeded();
1115 return m_cachedLiveRegionRoot ? m_cachedLiveRegionRoot->liveRegionRelevant() : nullAtom; 1115 return m_cachedLiveRegionRoot ? m_cachedLiveRegionRoot->liveRegionRelevant() : nullAtom;
1116 } 1116 }
1117 1117
1118 bool AXObject::containerLiveRegionAtomic() const 1118 bool AXObject::containerLiveRegionAtomic() const
1119 { 1119 {
1120 updateCachedAttributeValuesIfNeeded(); 1120 updateCachedAttributeValuesIfNeeded();
1121 return m_cachedLiveRegionRoot ? m_cachedLiveRegionRoot->liveRegionAtomic() : false; 1121 return m_cachedLiveRegionRoot && m_cachedLiveRegionRoot->liveRegionAtomic();
1122 } 1122 }
1123 1123
1124 bool AXObject::containerLiveRegionBusy() const 1124 bool AXObject::containerLiveRegionBusy() const
1125 { 1125 {
1126 updateCachedAttributeValuesIfNeeded(); 1126 updateCachedAttributeValuesIfNeeded();
1127 return m_cachedLiveRegionRoot ? m_cachedLiveRegionRoot->liveRegionBusy() : f alse; 1127 return m_cachedLiveRegionRoot && m_cachedLiveRegionRoot->liveRegionBusy();
1128 } 1128 }
1129 1129
1130 void AXObject::markCachedElementRectDirty() const 1130 void AXObject::markCachedElementRectDirty() const
1131 { 1131 {
1132 for (const auto& child : m_children) 1132 for (const auto& child : m_children)
1133 child->markCachedElementRectDirty(); 1133 child->markCachedElementRectDirty();
1134 } 1134 }
1135 1135
1136 IntPoint AXObject::clickPoint() 1136 IntPoint AXObject::clickPoint()
1137 { 1137 {
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1748 1748
1749 DEFINE_TRACE(AXObject) 1749 DEFINE_TRACE(AXObject)
1750 { 1750 {
1751 visitor->trace(m_children); 1751 visitor->trace(m_children);
1752 visitor->trace(m_parent); 1752 visitor->trace(m_parent);
1753 visitor->trace(m_cachedLiveRegionRoot); 1753 visitor->trace(m_cachedLiveRegionRoot);
1754 visitor->trace(m_axObjectCache); 1754 visitor->trace(m_axObjectCache);
1755 } 1755 }
1756 1756
1757 } // namespace blink 1757 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698