Bug 275966
Summary: | [css-writing-modes] Refactor TextFlow to be a struct instead of an enum | ||
---|---|---|---|
Product: | WebKit | Reporter: | Vitor Roriz <vitor.roriz> |
Component: | Text | Assignee: | Tim Nguyen (:ntim) <ntim> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | fantasai.bugs, ntim, vitor.roriz, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Other | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Vitor Roriz
TextFlow is currently a enum representing different combinations of TextDirection and BlockFlowDirection (which actually is derived from WritingMode).
The enum is a bit confusing to work with, as these names don't make a clear and easy-to-read representation of what they really represent:
InlineEastBlockSouth = makeTextFlowInitalizer(BlockFlowDirection::TopToBottom, TextDirection::LTR),
InlineWestBlockSouth = makeTextFlowInitalizer(BlockFlowDirection::TopToBottom, TextDirection::RTL),
InlineEastBlockNorth = makeTextFlowInitalizer(BlockFlowDirection::BottomToTop, TextDirection::LTR),
InlineWestBlockNorth = makeTextFlowInitalizer(BlockFlowDirection::BottomToTop, TextDirection::RTL),
InlineSouthBlockEast = makeTextFlowInitalizer(BlockFlowDirection::LeftToRight, TextDirection::LTR),
InlineSouthBlockWest = makeTextFlowInitalizer(BlockFlowDirection::LeftToRight, TextDirection::RTL),
InlineNorthBlockEast = makeTextFlowInitalizer(BlockFlowDirection::RightToLeft, TextDirection::LTR),
InlineNorthBlockWest = makeTextFlowInitalizer(BlockFlowDirection::RightToLeft, TextDirection::RTL)
This was discussed here: https://github.com/WebKit/WebKit/pull/30158
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/130787071>
Tim Nguyen (:ntim)
Pull request: https://github.com/WebKit/WebKit/pull/30295
EWS
Committed 280494@main (a760ea6009c1): <https://commits.webkit.org/280494@main>
Reviewed commits have been landed. Closing PR #30295 and removing active labels.