Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: ab68b25713f7cfaa97ae4453e8e2aadfdcdfaf2b https://github.com/WebKit/WebKit/commit/ab68b25713f7cfaa97ae4453e8e2aadfdcdfaf2b Author: Joshua Hoffman <jhoffma...@apple.com> Date: 2024-05-14 (Tue, 14 May 2024)
Changed paths: M Source/WebCore/page/ElementTargetingController.cpp M Source/WebCore/page/ElementTargetingTypes.h M Source/WebCore/page/text-extraction/TextExtraction.cpp M Source/WebCore/page/text-extraction/TextExtraction.h M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in M Source/WebKit/UIProcess/API/APITargetedElementInfo.h M Source/WebKit/UIProcess/API/Cocoa/_WKTargetedElementInfo.h M Source/WebKit/UIProcess/API/Cocoa/_WKTargetedElementInfo.mm M Tools/TestWebKitAPI/Tests/WebKitCocoa/ElementTargetingTests.mm Log Message: ----------- [Remote Inspection] AX: Add screen reader support for element targeting https://bugs.webkit.org/show_bug.cgi?id=274108 rdar://128019127 Reviewed by Wenson Hsieh. To surface targeting information to screen readers, we need to add a new text property, screenReaderText, to expose those bits of rendered text relevant to screen reader users. * Source/WebCore/page/ElementTargetingController.cpp: (WebCore::targetedElementInfo): * Source/WebCore/page/ElementTargetingTypes.h: * Source/WebCore/page/text-extraction/TextExtraction.cpp: (WebCore::TextExtraction::extractRenderedText): * Source/WebCore/page/text-extraction/TextExtraction.h: * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: * Source/WebKit/UIProcess/API/APITargetedElementInfo.h: * Source/WebKit/UIProcess/API/Cocoa/_WKTargetedElementInfo.h: * Source/WebKit/UIProcess/API/Cocoa/_WKTargetedElementInfo.mm: (-[_WKTargetedElementInfo screenReaderText]): * Tools/TestWebKitAPI/Tests/WebKitCocoa/ElementTargetingTests.mm: (TestWebKitAPI::TEST(ElementTargeting, TargetedElementScreenReaderText)): Canonical link: https://commits.webkit.org/278780@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes