| Summary: | [LFC][IFC] Implement TextUtil::directionForTextContent | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | zalan <zalan> | ||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | bfulgham, koivisto, simon.fraser, webkit-bug-importer, zalan | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
zalan
2022-01-19 20:20:13 PST
Created attachment 449549 [details]
Patch
Created attachment 449585 [details]
Patch
Comment on attachment 449585 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=449585&action=review > Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp:345 > +TextDirection TextUtil::directionForTextContent(StringView content) > { > - ASSERT_NOT_IMPLEMENTED_YET(); > - return TextDirection::LTR; > + if (content.is8Bit()) > + return TextDirection::LTR; > + return ubidi_getBaseDirection(content.characters16(), content.length()) == UBIDI_RTL ? TextDirection::RTL : TextDirection::LTR; > } Nice Committed r288343 (246249@main): <https://commits.webkit.org/246249@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 449585 [details]. |