| Summary: | [LFC][IFC] Add unicode-bidi control characters | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 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
2021-10-30 20:04:34 PDT
Created attachment 442925 [details]
Patch
Comment on attachment 442925 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=442925&action=review > Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp:220 > void InlineItemsBuilder::handleInlineBox(const Box& inlineBox, EnterInlineBox enterInlineBox, InlineItems& inlineItems) Maybe entering/exiting could be just two separate functions? Created attachment 442934 [details]
Patch
Committed r285093 (243735@main): <https://commits.webkit.org/243735@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 442934 [details]. Comment on attachment 442934 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=442934&action=review > Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp:260 > + if (enteringContentControlChar) > + enterBidiContext(inlineBox, *enteringContentControlChar); > + if (nestedContentControlChar) > + enterBidiContext(inlineBox, *nestedContentControlChar); I think these calls could be inside the switch, avoiding the variables. > Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp:302 > + if (nestedContentControlChar) > + exitBidiContext(inlineBox, *nestedContentControlChar); > + if (exitingContentControlChar) > + exitBidiContext(inlineBox, *exitingContentControlChar); Here too. |