Files
ladybird/Libraries/LibWeb/Layout/TextNode.cpp
Andreas Kling e654f9db8c LibWeb: Add ASCII fast path for bidi class lookups in text layout
For ASCII characters, the bidirectional class is trivially known:
letters (A-Z, a-z) are Left-to-Right, and everything else (digits,
spaces, punctuation) is neutral.

This avoids expensive Unicode::bidirectional_class() lookups via ICU
for the common case of ASCII-only text.
2026-01-11 11:10:19 +01:00

24 KiB