| 15 | namespace facebook::yoga { |
| 16 | |
| 17 | inline Align resolveChildAlignment( |
| 18 | const yoga::Node* node, |
| 19 | const yoga::Node* child) { |
| 20 | const Align align = child->style().alignSelf() == Align::Auto |
| 21 | ? node->style().alignItems() |
| 22 | : child->style().alignSelf(); |
| 23 | |
| 24 | if (node->style().display() == Display::Flex && align == Align::Baseline && |
| 25 | isColumn(node->style().flexDirection())) { |
| 26 | return Align::FlexStart; |
| 27 | } |
| 28 | |
| 29 | return align; |
| 30 | } |
| 31 | |
| 32 | inline Justify resolveChildJustification( |
| 33 | const yoga::Node* node, |
no test coverage detected