Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4c33b576af49503f96da83a7df6bede3269fa102
https://github.com/WebKit/WebKit/commit/4c33b576af49503f96da83a7df6bede3269fa102
Author: Taher Ali <[email protected]>
Date: 2025-04-02 (Wed, 02 Apr 2025)
Changed paths:
M LayoutTests/platform/mac/TestExpectations
M Source/WebCore/rendering/svg/SVGTextMetricsBuilder.cpp
Log Message:
-----------
Invalidate FontCascadeCache on SVGTextMetrics
rdar://146694832
https://bugs.webkit.org/show_bug.cgi?id=289495
Reviewed by Vitor Roriz.
When rendering SVG documents containing unicode-bidi text, inconsistent text
metrics occur
specifically when transitioning from text with unicode-bidi="override" to text
with unicode-bidi="embed".
This issue occured in a single-process rendering which was caught by
WebKitTestRunner.
Perhaps, the root cause is that
CSSFontSelector::isSimpleFontSelectorForDescription()
doesnt consider complex SVG text paths. This leads to slightly different font
metrics calculations for unicode bidi text.
We simply invalidate FontCascadeCache when a text run has complex path.
* LayoutTests/platform/mac/TestExpectations:
* Source/WebCore/rendering/svg/SVGTextMetricsBuilder.cpp:
(WebCore::SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer):
Canonical link: https://commits.webkit.org/293113@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes