@@ -517,7 +517,7 @@ - (UIView *)createViewForShadowListItem:(HippyShadowView *)shadowView {
517517 // until the next `cellForItemAtIndexPath` call.
518518 // we currently resolve this issue by setting the CreationType synchronously.
519519 // TODO: CreationType's further optimization is needed in the future
520- [shadowView synchronousRecusivelySetCreationTypeToInstant ];
520+ [shadowView synchronousRecursivelySetCreationTypeToInstant ];
521521 UIView *listItemView = [self createViewRecursiveFromRenderObjectWithNOLock: shadowView];
522522
523523 [self .viewRegistry generateTempCacheBeforeAcquireAllStoredWeakComponentsForRootTag: shadowView.rootTag];
@@ -545,7 +545,7 @@ - (UIView *)createViewRecursiveFromRenderObjectWithNOLock:(HippyShadowView *)sha
545545 if (view) {
546546 // First of all, mark shadowView as dirty recursively,
547547 // so that we can collect ui blocks to amend correctly.
548- [shadowView dirtyPropagation: NativeRenderUpdateLifecycleAllDirtied ];
548+ [shadowView markLayoutDirty ];
549549
550550 // Special handling of lazy list, which is a cellView
551551 // because lazy loading list needs to be re-layout
@@ -641,7 +641,7 @@ - (void)updateView:(nonnull NSNumber *)componentTag
641641 HippyComponentData *componentData = [self componentDataForViewName: renderObject.viewName];
642642 NSDictionary *newProps = [renderObject mergeProps: props];
643643 [componentData setProps: newProps forShadowView: renderObject];
644- [renderObject dirtyPropagation: NativeRenderUpdateLifecyclePropsDirtied ];
644+ [renderObject markLayoutDirty ];
645645 [self addUIBlock: ^(__unused HippyUIManager *uiManager, NSDictionary <NSNumber *, UIView *> *viewRegistry) {
646646 UIView *view = viewRegistry[componentTag];
647647 [componentData setProps: newProps forView: view];
@@ -891,7 +891,7 @@ - (void)deleteRenderNodesIds:(std::vector<std::shared_ptr<hippy::DomNode>> &&)no
891891 for (auto dom_node : nodes) {
892892 int32_t tag = dom_node->GetRenderInfo ().id ;
893893 HippyShadowView *renderObject = [currentRegistry objectForKey: @(tag)];
894- [renderObject dirtyPropagation: NativeRenderUpdateLifecycleLayoutDirtied ];
894+ [renderObject markLayoutDirty ];
895895 if (renderObject) {
896896 [renderObject removeFromHippySuperview ];
897897 [self purgeChildren: @[renderObject] onRootTag: rootTag fromRegistry: _shadowViewRegistry];
@@ -961,8 +961,8 @@ - (void)renderMoveViews:(const std::vector<int32_t> &&)ids
961961 [view removeFromHippySuperview ];
962962 [toShadowView insertHippySubview: view atIndex: nodeRenderIndex];
963963 }
964- [fromShadowView dirtyPropagation: NativeRenderUpdateLifecycleLayoutDirtied ];
965- [toShadowView dirtyPropagation: NativeRenderUpdateLifecycleLayoutDirtied ];
964+ [fromShadowView markLayoutDirty ];
965+ [toShadowView markLayoutDirty ];
966966 [fromShadowView didUpdateHippySubviews ];
967967 [toShadowView didUpdateHippySubviews ];
968968 auto strongTags = std::move (ids);
@@ -1000,7 +1000,7 @@ - (void)renderMoveNodes:(std::vector<std::shared_ptr<hippy::DomNode>> &&)nodes
10001000 int32_t index = node->GetRenderInfo ().index ;
10011001 int32_t componentTag = node->GetId ();
10021002 HippyShadowView *objectView = [_shadowViewRegistry componentForTag: @(componentTag) onRootTag: @(rootTag)];
1003- [objectView dirtyPropagation: NativeRenderUpdateLifecycleLayoutDirtied ];
1003+ [objectView markLayoutDirty ];
10041004 HippyAssert (!parentObjectView || parentObjectView == [objectView parent ], @" parent not same!" );
10051005 if (!parentObjectView) {
10061006 parentObjectView = (HippyShadowView *)[objectView parent ];
@@ -1044,7 +1044,7 @@ - (void)updateNodesLayout:(const std::vector<std::tuple<int32_t, hippy::LayoutRe
10441044 CGRect frame = CGRectMakeFromLayoutResult (layoutResult);
10451045 HippyShadowView *shadowView = [_shadowViewRegistry componentForTag: componentTag onRootTag: rootTag];
10461046 if (shadowView) {
1047- [shadowView dirtyPropagation: NativeRenderUpdateLifecycleLayoutDirtied ];
1047+ [shadowView markLayoutDirty ];
10481048 shadowView.frame = frame;
10491049 shadowView.nodeLayoutResult = layoutResult;
10501050 [self addUIBlock: ^(__unused HippyUIManager *uiManager, NSDictionary <NSNumber *,__kindof UIView *> *viewRegistry) {
@@ -1548,7 +1548,7 @@ - (void)onFontChangedFromNative:(NSNotification *)notification {
15481548 ((HippyShadowText *)shadowView).fontSizeMultiplier = fontSizeMultiplier;
15491549 }
15501550 [shadowView dirtyText: NO ];
1551- [shadowView dirtyPropagation: NativeRenderUpdateLifecycleLayoutDirtied ];
1551+ [shadowView markLayoutDirty ];
15521552 }
15531553 }
15541554 // do layout and refresh UI
0 commit comments