[webkit-changes] [WebKit/WebKit] e311b7: (REGRESSION) First letter of URL is cropped off in...
Alan Baradlay
noreply at github.com
Thu Feb 1 11:04:15 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e311b7b2adbd99a79c7a32debd817d085995029e
https://github.com/WebKit/WebKit/commit/e311b7b2adbd99a79c7a32debd817d085995029e
Author: Alan Baradlay <zalan at apple.com>
Date: 2024-02-01 (Thu, 01 Feb 2024)
Changed paths:
M LayoutTests/platform/mac/fast/text/letter-spacing-negative-opacity-expected.txt
M LayoutTests/platform/mac/fast/text/text-letter-spacing-expected.txt
M Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp
Log Message:
-----------
(REGRESSION) First letter of URL is cropped off in X (Twitter) timeline
https://bugs.webkit.org/show_bug.cgi?id=268512
<rdar://121891210>
Reviewed by Antti Koivisto.
Custom font reports negative advance width for '/' character. We incorrectly offset adjacent inline content producing cropped rendering.
* Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp:
(WebCore::Layout::TextUtil::width):
Canonical link: https://commits.webkit.org/273927@main
More information about the webkit-changes
mailing list