-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 9e34390. rdar://123328041
REGRESSION (271515@main): Bold and Italic keyboard bar button items in the UCB never update https://bugs.webkit.org/show_bug.cgi?id=270169 rdar://123328041 Reviewed by Tim Horton. The changes in 271515@main were meant to merge functionality in both the public API delegate method `-textStylingAtPosition:inDirection:` and the UIKit IPI `-fontForCaretSelection` into just the public API. However, this removed logic for setting symbolic traits on the font descriptor (bold, italic) with no replacement. Fix this by reinstating this code, and augmenting an existing API test to exercise this logic. Test: AutocorrectionTests.FontAtCaretWhenUsingUICTFontTextStyle * Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView textStylingAtPosition:inDirection:]): * Tools/TestWebKitAPI/Tests/ios/AutocorrectionTestsIOS.mm: (-[UIFont _test_systemFontWithSize:traits:]): Canonical link: https://commits.webkit.org/275396@main Canonical link: https://commits.webkit.org/272448.641@safari-7618-branch
- Loading branch information
Showing
2 changed files
with
44 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters