Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9a11844523ca34c274cd4b361f9805010fc759ae
      
https://github.com/WebKit/WebKit/commit/9a11844523ca34c274cd4b361f9805010fc759ae
  Author: Tommy McHugh <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to