Skip to content

Commit

Permalink
Replace dim and pos arrays (facebook#39397)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#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: 5c852178effd25df6f4c74f18115c3b2889b486b
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Sep 12, 2023
1 parent d5cd929 commit 362a18d
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 80 deletions.
Loading

0 comments on commit 362a18d

Please sign in to comment.