Skip to content

Commit

Permalink
Replace dim and pos arrays (#39397)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #39397

X-link: facebook/yoga#1373

These are used to get the position origin edge from axis (same as leading edge), and dimension from axis.

Replace them with function usage, so that we can call into them from other files than `CalculateLayout.cpp`, and so that we can later use scoped enums not implicitly convertible to ints.

Reviewed By: rshest

Differential Revision: D49134566

fbshipit-source-id: cb806539ba0733a5773c594713720d465987e469
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Sep 12, 2023
1 parent c85e428 commit 31f51dd
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 80 deletions.
Loading

0 comments on commit 31f51dd

Please sign in to comment.