Changeset 280633 in webkit
- Timestamp:
- Aug 4, 2021 7:04:38 AM (12 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 8 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/accessibility/selected-state-changed-notifications-expected.txt (added)
-
LayoutTests/accessibility/selected-state-changed-notifications.html (added)
-
LayoutTests/platform/mac-wk1/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/accessibility/AXLogger.cpp (modified) (1 diff)
-
Source/WebCore/accessibility/AXObjectCache.cpp (modified) (2 diffs)
-
Source/WebCore/accessibility/AXObjectCache.h (modified) (2 diffs)
-
Source/WebCore/accessibility/ios/AXObjectCacheIOS.mm (modified) (1 diff)
-
Source/WebCore/accessibility/mac/AXObjectCacheMac.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r280631 r280633 1 2021-08-04 Andres Gonzalez <andresg_22@apple.com> 2 3 Add support for aria-selected value changes in table cells. 4 https://bugs.webkit.org/show_bug.cgi?id=228756 5 <rdar://problem/81483071> 6 7 Reviewed by Chris Fleizach. 8 9 * accessibility/selected-state-changed-notifications-expected.txt: Added. 10 * accessibility/selected-state-changed-notifications.html: Added. 11 1 12 2021-08-04 Cathie Chen <cathiechen@igalia.com> 2 13 -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r280539 r280633 971 971 accessibility/mac/pseudo-element-text-markers.html [ Skip ] 972 972 accessibility/nested-textareas-value-changed-notifications.html [ Skip ] 973 accessibility/selected-state-changed-notifications.html [ Skip ] 973 974 974 975 # <rdar://problem/61066929> [ Stress GC ] flaky JSC::ExceptionScope::assertNoException crash under WebCore::ReadableStreamDefaultController -
trunk/Source/WebCore/ChangeLog
r280632 r280633 1 2021-08-04 Andres Gonzalez <andresg_22@apple.com> 2 3 Add support for aria-selected value changes in table cells. 4 https://bugs.webkit.org/show_bug.cgi?id=228756 5 <rdar://problem/81483071> 6 7 Reviewed by Chris Fleizach. 8 9 Test: accessibility/selected-state-changed-notifications.html 10 11 - Added the AXSelectedStateChangedNotification to notify AX clients that 12 the selected state of an object has changed. 13 - This notification is used in this patch for aria-selected value 14 changes in table cells. 15 16 * accessibility/AXLogger.cpp: 17 (WebCore::operator<<): 18 * accessibility/AXObjectCache.cpp: 19 (WebCore::AXObjectCache::selectedStateChanged): 20 (WebCore::AXObjectCache::handleAttributeChange): 21 * accessibility/AXObjectCache.h: 22 * accessibility/ios/AXObjectCacheIOS.mm: 23 (WebCore::AXObjectCache::notificationPlatformName): 24 * accessibility/mac/AXObjectCacheMac.mm: 25 (WebCore::AXObjectCache::postPlatformNotification): 26 1 27 2021-08-04 Martin Robinson <mrobinson@webkit.org> 2 28 -
trunk/Source/WebCore/accessibility/AXLogger.cpp
r279171 r280633 394 394 stream << "AXSelectedChildrenChanged"; 395 395 break; 396 case AXObjectCache::AXNotification::AXSelectedStateChanged: 397 stream << "AXSelectedStateChanged"; 398 break; 396 399 case AXObjectCache::AXNotification::AXSelectedTextChanged: 397 400 stream << "AXSelectedTextChanged"; -
trunk/Source/WebCore/accessibility/AXObjectCache.cpp
r279941 r280633 1298 1298 // to find the container which should send out the notification. 1299 1299 postNotification(renderer, AXSelectedChildrenChanged, PostTarget::ObservableParent); 1300 } 1301 1302 void AXObjectCache::selectedStateChanged(Node* node) 1303 { 1304 // For a table cell, post AXSelectedStateChanged on the cell itself. 1305 // For any other element, post AXSelectedChildrenChanged on the parent. 1306 if (nodeHasRole(node, "gridcell") || nodeHasRole(node, "cell") 1307 || nodeHasRole(node, "columnheader") || nodeHasRole(node, "rowheader")) 1308 postNotification(node, AXSelectedStateChanged); 1309 else 1310 selectedChildrenChanged(node); 1300 1311 } 1301 1312 … … 1807 1818 checkedStateChanged(element); 1808 1819 else if (attrName == aria_selectedAttr) 1809 selected ChildrenChanged(element);1820 selectedStateChanged(element); 1810 1821 else if (attrName == aria_expandedAttr) 1811 1822 handleAriaExpandedChange(element); -
trunk/Source/WebCore/accessibility/AXObjectCache.h
r279171 r280633 292 292 AXPageScrolled, 293 293 AXSelectedChildrenChanged, 294 AXSelectedStateChanged, 294 295 AXSelectedTextChanged, 295 296 AXValueChanged, … … 464 465 void selectedChildrenChanged(Node*); 465 466 void selectedChildrenChanged(RenderObject*); 467 void selectedStateChanged(Node*); 466 468 // Called by a node when text or a text equivalent (e.g. alt) attribute is changed. 467 469 void textChanged(Node*); -
trunk/Source/WebCore/accessibility/ios/AXObjectCacheIOS.mm
r279171 r280633 57 57 case AXPageScrolled: 58 58 name = "AXPageScrolled"; 59 break; 60 case AXSelectedStateChanged: 61 name = "AXSelectedCellsChanged"; 59 62 break; 60 63 case AXSelectedTextChanged: -
trunk/Source/WebCore/accessibility/mac/AXObjectCacheMac.mm
r279171 r280633 343 343 else 344 344 macNotification = NSAccessibilitySelectedChildrenChangedNotification; 345 break; 346 case AXSelectedStateChanged: 347 macNotification = NSAccessibilitySelectedCellsChangedNotification; 345 348 break; 346 349 case AXSelectedTextChanged:
Note: See TracChangeset
for help on using the changeset viewer.