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

Method measure

valdi/src/valdi/runtime/Views/DefaultMeasureDelegate.cpp:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15DefaultMeasureDelegate::~DefaultMeasureDelegate() = default;
16
17Size DefaultMeasureDelegate::measure(
18 ViewNode& viewNode, float width, MeasureMode widthMode, float height, MeasureMode heightMode) {
19 auto layoutAttributes = viewNode.copyProcessedViewLayoutAttributes();
20 if (!layoutAttributes) {
21 return Valdi::Size();
22 }
23
24 return onMeasure(layoutAttributes.value(), width, widthMode, height, heightMode, viewNode.isRightToLeft());
25}
26
27} // namespace Valdi

Callers

nothing calls this directly

Calls 4

SizeClass · 0.70
valueMethod · 0.65
isRightToLeftMethod · 0.45

Tested by

no test coverage detected