| 59 | } |
| 60 | |
| 61 | bool isBaselineLayout(const yoga::Node* node) { |
| 62 | if (isColumn(node->style().flexDirection())) { |
| 63 | return false; |
| 64 | } |
| 65 | if (node->style().alignItems() == Align::Baseline) { |
| 66 | return true; |
| 67 | } |
| 68 | for (auto child : node->getLayoutChildren()) { |
| 69 | if (child->style().positionType() != PositionType::Absolute && |
| 70 | child->style().alignSelf() == Align::Baseline) { |
| 71 | return true; |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | return false; |
| 76 | } |
| 77 | |
| 78 | } // namespace facebook::yoga |
no test coverage detected