@@ -69,13 +69,14 @@ static std::shared_ptr<ShadowNode> progressState(const ShadowNode& shadowNode) {
6969 }
7070
7171 return shadowNode.clone ({
72- ShadowNodeFragment::propsPlaceholder (),
73- areChildrenChanged
72+ . props = ShadowNodeFragment::propsPlaceholder (),
73+ . children = areChildrenChanged
7474 ? std::make_shared<
7575 const std::vector<std::shared_ptr<const ShadowNode>>>(
7676 std::move (newChildren))
7777 : ShadowNodeFragment::childrenPlaceholder (),
78- isStateChanged ? newState : ShadowNodeFragment::statePlaceholder (),
78+ .state =
79+ isStateChanged ? newState : ShadowNodeFragment::statePlaceholder (),
7980 });
8081}
8182
@@ -158,13 +159,14 @@ static std::shared_ptr<ShadowNode> progressState(
158159 }
159160
160161 return shadowNode.clone ({
161- ShadowNodeFragment::propsPlaceholder (),
162- areChildrenChanged
162+ . props = ShadowNodeFragment::propsPlaceholder (),
163+ . children = areChildrenChanged
163164 ? std::make_shared<
164165 const std::vector<std::shared_ptr<const ShadowNode>>>(
165166 std::move (newChildren))
166167 : ShadowNodeFragment::childrenPlaceholder (),
167- isStateChanged ? newState : ShadowNodeFragment::statePlaceholder (),
168+ .state =
169+ isStateChanged ? newState : ShadowNodeFragment::statePlaceholder (),
168170 });
169171}
170172
@@ -177,7 +179,9 @@ ShadowTree::ShadowTree(
177179 : surfaceId_(surfaceId), delegate_(delegate) {
178180 static RootComponentDescriptor globalRootComponentDescriptor (
179181 ComponentDescriptorParameters{
180- EventDispatcher::Shared{}, nullptr , nullptr });
182+ .eventDispatcher = EventDispatcher::Shared{},
183+ .contextContainer = nullptr ,
184+ .flavor = nullptr });
181185
182186 const auto props = std::make_shared<const RootProps>(
183187 PropsParserContext{surfaceId, contextContainer},
@@ -186,17 +190,19 @@ ShadowTree::ShadowTree(
186190 layoutContext);
187191
188192 auto family = globalRootComponentDescriptor.createFamily (
189- {surfaceId, surfaceId, nullptr });
193+ {. tag = surfaceId, . surfaceId = surfaceId, . instanceHandle = nullptr });
190194
191195 auto rootShadowNode = std::static_pointer_cast<const RootShadowNode>(
192196 globalRootComponentDescriptor.createShadowNode (
193197 ShadowNodeFragment{
194- /* .props = */ props,
198+ /* .props = */ . props = props,
195199 },
196200 family));
197201
198202 currentRevision_ = ShadowTreeRevision{
199- rootShadowNode, INITIAL_REVISION, TransactionTelemetry{}};
203+ .rootShadowNode = rootShadowNode,
204+ .number = INITIAL_REVISION,
205+ .telemetry = TransactionTelemetry{}};
200206
201207 mountingCoordinator_ =
202208 std::make_shared<const MountingCoordinator>(currentRevision_);
@@ -354,7 +360,9 @@ CommitStatus ShadowTree::tryCommit(
354360 newRootShadowNode->sealRecursive ();
355361
356362 newRevision = ShadowTreeRevision{
357- std::move (newRootShadowNode), newRevisionNumber, telemetry};
363+ .rootShadowNode = std::move (newRootShadowNode),
364+ .number = newRevisionNumber,
365+ .telemetry = telemetry};
358366
359367 currentRevision_ = newRevision;
360368 }
@@ -387,8 +395,9 @@ void ShadowTree::commitEmptyTree() const {
387395 return std::make_shared<RootShadowNode>(
388396 oldRootShadowNode,
389397 ShadowNodeFragment{
390- /* .props = */ ShadowNodeFragment::propsPlaceholder (),
391- /* .children = */ ShadowNode::emptySharedShadowNodeSharedList (),
398+ /* .props = */ .props = ShadowNodeFragment::propsPlaceholder (),
399+ /* .children = */ .children =
400+ ShadowNode::emptySharedShadowNodeSharedList (),
392401 });
393402 },
394403 {/* default commit options */ });
0 commit comments