MCPcopy Create free account
hub / github.com/Snapchat/Valdi / processDimensions

Method processDimensions

third-party/yoga/src/yoga/node/Node.cpp:360–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360void 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
372Direction Node::resolveDirection(const Direction ownerDirection) {
373 if (style_.direction() == Direction::Inherit) {

Callers 2

calculateLayoutFunction · 0.80

Calls 4

to_underlyingFunction · 0.85
dimensionMethod · 0.80
inexactEqualsFunction · 0.50
isDefinedMethod · 0.45

Tested by

no test coverage detected