| 15 | DefaultMeasureDelegate::~DefaultMeasureDelegate() = default; |
| 16 | |
| 17 | Size 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 |
nothing calls this directly
no test coverage detected