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

Method setHasChildWithAccessibilityId

valdi/src/valdi/runtime/Context/ViewNode.cpp:3039–3048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3037 ViewNodeChildrenIndexer* parentChildrenIndexer,
3038 ViewNodesFrameObserver* frameObserver) {
3039 auto didPerformLayoutForChildren = didPerformLayout;
3040 auto shouldVisitChildren = false;
3041 bool calculatedFrameDidChange = false;
3042 bool calculatedSizeDidChange = false;
3043
3044 // Step 1: If we finished a layout pass, we update the calculated frame and the view frame
3045
3046 if (didPerformLayout) {
3047 if (updateCalculatedFrame(
3048 viewOffsetX, viewOffsetY, rtlOffsetX, &calculatedFrameDidChange, &calculatedSizeDidChange)) {
3049 // Sync the horizontal state with our children indexer
3050 if (_childrenIndexer != nullptr) {
3051 _childrenIndexer->setHorizontal(isHorizontal());

Callers 1

setAccessibilityIdMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected