Use flexStart functions instead of inlineStart ones in cases where setting position
Summary: In all cases where we had to set a position we define what edge to set it on. All calls here set the flex edge, not the inline one. That makes sense because the flex start edge is most important when applying some of the key parts of the flexbox algorithm, which is in charge of deciding the position for the most part (we resolve flex direction to RowReverse/Row when in RTL). While all the inline stuff is mainly used to set the sides for specific layout values like margin, border, and padding.
I also added a test case here for 2 of the callsites changed, but the rest either fail for different reasons or get overriden due to the remaining logic. Still I think we should be consistent.
Differential Revision: D51187444
This pull request was exported from Phabricator. Differential Revision: D51187444
| Platform | Engine | Arch | Size (bytes) | Diff |
|---|---|---|---|---|
| android | hermes | arm64-v8a | 17,646,346 | -31 |
| android | hermes | armeabi-v7a | n/a | -- |
| android | hermes | x86 | n/a | -- |
| android | hermes | x86_64 | n/a | -- |
| android | jsc | arm64-v8a | 21,033,924 | -37 |
| android | jsc | armeabi-v7a | n/a | -- |
| android | jsc | x86 | n/a | -- |
| android | jsc | x86_64 | n/a | -- |
Base commit: d9fa64ee3e405b25d80534a0015f85f042b2618f Branch: main
This pull request was exported from Phabricator. Differential Revision: D51187444
This pull request was exported from Phabricator. Differential Revision: D51187444
This pull request was exported from Phabricator. Differential Revision: D51187444
This pull request was exported from Phabricator. Differential Revision: D51187444
This pull request was exported from Phabricator. Differential Revision: D51187444
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This PR was closed because it has been stalled for 7 days with no activity.
This PR was closed because it has been stalled for 7 days with no activity.