File tree Expand file tree Collapse file tree 3 files changed +90
-154
lines changed Expand file tree Collapse file tree 3 files changed +90
-154
lines changed Original file line number Diff line number Diff line change 23
23
24
24
using AS::MutexLocker;
25
25
26
- @interface ASDisplayNode (ASLayoutElementStyleDelegate) <ASLayoutElementStyleDelegate>
27
- @end
28
-
29
- @implementation ASDisplayNode (ASLayoutElementStyleDelegate)
30
-
31
- #pragma mark <ASLayoutElementStyleDelegate>
32
-
33
- - (void )style : (ASLayoutElementStyle *)style propertyDidChange : (NSString *)propertyName {
34
- [self setNeedsLayout ];
35
- }
36
-
37
- @end
38
-
39
26
#pragma mark - ASDisplayNode (ASLayoutElement)
40
27
41
28
@implementation ASDisplayNode (ASLayoutElement)
@@ -59,9 +46,8 @@ - (ASLayoutElementStyle *)style
59
46
60
47
- (ASLayoutElementStyle *)_locked_style
61
48
{
62
- ASAssertLocked (__instanceLock__);
63
49
if (_style == nil ) {
64
- _style = [[ASLayoutElementStyle alloc ] initWithDelegate: self ];
50
+ _style = [[ASLayoutElementStyle alloc ] init ];
65
51
}
66
52
return _style;
67
53
}
Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ - (void)_locked_removeYogaChild:(ASDisplayNode *)child
93
93
94
94
// YGNodeRef removal is done in setParent:
95
95
child.yogaParent = nil ;
96
- [self setNeedsLayout ];
97
96
}
98
97
99
98
- (void )insertYogaChild : (ASDisplayNode *)child atIndex : (NSUInteger )index
@@ -118,7 +117,6 @@ - (void)_locked_insertYogaChild:(ASDisplayNode *)child atIndex:(NSUInteger)index
118
117
119
118
// YGNodeRef insertion is done in setParent:
120
119
child.yogaParent = self;
121
- [self setNeedsLayout ];
122
120
}
123
121
124
122
#pragma mark - Subclass Hooks
You can’t perform that action at this time.
0 commit comments