| 358 | } |
| 359 | |
| 360 | void Node::processDimensions() { |
| 361 | for (auto dim : {Dimension::Width, Dimension::Height}) { |
| 362 | if (style_.maxDimension(dim).isDefined() && |
| 363 | yoga::inexactEquals( |
| 364 | style_.maxDimension(dim), style_.minDimension(dim))) { |
| 365 | processedDimensions_[yoga::to_underlying(dim)] = style_.maxDimension(dim); |
| 366 | } else { |
| 367 | processedDimensions_[yoga::to_underlying(dim)] = style_.dimension(dim); |
| 368 | } |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | Direction Node::resolveDirection(const Direction ownerDirection) { |
| 373 | if (style_.direction() == Direction::Inherit) { |
no test coverage detected