Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: f45f1ca9e7b621c76ed0c6fa53fd3fcf5607984a https://github.com/WebKit/WebKit/commit/f45f1ca9e7b621c76ed0c6fa53fd3fcf5607984a Author: Said Abou-Hallawa <s...@apple.com> Date: 2025-08-28 (Thu, 28 Aug 2025)
Changed paths: A LayoutTests/fast/text/text-security-small-wavy-style-expected.txt A LayoutTests/fast/text/text-security-small-wavy-style.html A LayoutTests/platform/ios/fast/text/text-security-small-wavy-style-expected.txt M Source/WebCore/platform/graphics/GraphicsContext.cpp M Source/WebCore/platform/graphics/GraphicsContext.h M Source/WebCore/rendering/TextDecorationPainter.cpp Log Message: ----------- Applying wavy underline text decoration with -webkit-text-security will hang if the font size is too small https://bugs.webkit.org/show_bug.cgi?id=297811 rdar://157024940 Reviewed by Simon Fraser. Ensure the wavy path will not have too many segments. Call drawLineForText() as a fallback in this case. Move adjustLineToPixelBoundaries() from GraphicsContext to TextDecorationPainter.cpp since strokeWavyTextDecoration() is the only caller. * LayoutTests/fast/text/text-security-small-wavy-style-expected.txt: Added. * LayoutTests/fast/text/text-security-small-wavy-style.html: Added. * LayoutTests/platform/ios/fast/text/text-security-small-wavy-style-expected.txt: Added. * Source/WebCore/platform/graphics/GraphicsContext.cpp: (WebCore::GraphicsContext::adjustLineToPixelBoundaries): Deleted. * Source/WebCore/platform/graphics/GraphicsContext.h: * Source/WebCore/rendering/TextDecorationPainter.cpp: (WebCore::textDecorationStyleToStrokeStyle): (WebCore::adjustLineToPixelBoundaries): (WebCore::strokeWavyTextDecoration): (WebCore::TextDecorationPainter::paintBackgroundDecorations): (WebCore::TextDecorationPainter::paintLineThrough): Canonical link: https://commits.webkit.org/299293@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