[webkit-changes] [WebKit/WebKit] 9a1184: AX: Expose bold and italic font styling as text at...

Tommy McHugh noreply at github.com
Wed Dec 21 13:31:57 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9a11844523ca34c274cd4b361f9805010fc759ae
      https://github.com/WebKit/WebKit/commit/9a11844523ca34c274cd4b361f9805010fc759ae
  Author: Tommy McHugh <thomas_mchugh at apple.com>
  Date:   2022-12-21 (Wed, 21 Dec 2022)

  Changed paths:
    A LayoutTests/accessibility/mac/attributed-string/attributed-string-text-styling-expected.txt
    A LayoutTests/accessibility/mac/attributed-string/attributed-string-text-styling.html
    M LayoutTests/platform/mac/accessibility/content-editable-as-textarea-expected.txt
    M Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperBase.mm

  Log Message:
  -----------
  AX: Expose bold and italic font styling as text attributes for macOS
https://bugs.webkit.org/show_bug.cgi?id=249688
rdar://problem/103577386

Reviewed by Chris Fleizach.

Currently WebKit only exposes bold and italic properties of font styling for iOS.
This patch adds bold and italic font styling information to accessibility for macOS
by checking the bold and italic symbolic font traits in AXAttributedStringSetFont and
adding their result as AXFontBold and AXFontItalic font attributes.

* LayoutTests/accessibility/mac/attributed-string/attributed-string-text-styling-expected.txt: Added.
* LayoutTests/accessibility/mac/attributed-string/attributed-string-text-styling.html: Added.
* Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperBase.mm:
(AXAttributedStringSetFont):

Canonical link: https://commits.webkit.org/258212@main




More information about the webkit-changes mailing list