@@ -653,10 +653,10 @@ - (BOOL)shouldMeasureWithSizeRange:(ASSizeRange)constrainedSize
653653 // Only generate a new layout if:
654654 // - The current layout is dirty
655655 // - The passed constrained size is different than the layout's constrained size
656- return ([self _dirtyLayout ] || !ASSizeRangeEqualToSizeRange (constrainedSize, _layout.constrainedSizeRange ));
656+ return ([self _hasDirtyLayout ] || !ASSizeRangeEqualToSizeRange (constrainedSize, _layout.constrainedSizeRange ));
657657}
658658
659- - (BOOL )_dirtyLayout
659+ - (BOOL )_hasDirtyLayout
660660{
661661 return _layout == nil || _layout.isDirty ;
662662}
@@ -1024,7 +1024,7 @@ - (void)__setNeedsLayout
10241024 ASDisplayNodeAssertThreadAffinity (self);
10251025 ASDN::MutexLocker l (_propertyLock);
10261026
1027- if ([self _dirtyLayout ]) {
1027+ if ([self _hasDirtyLayout ]) {
10281028 return ;
10291029 }
10301030
@@ -1100,7 +1100,7 @@ - (void)measureNodeWithBoundsIfNecessary:(CGRect)bounds
11001100 // Normally measure will be called before layout occurs. If this doesn't happen, nothing is going to call it at all.
11011101 // We simply call measureWithSizeRange: using a size range equal to whatever bounds were provided to that element or
11021102 // try to measure the node with the largest size as possible
1103- if (self.supernode == nil && !self.supportsRangeManagedInterfaceState && [self _dirtyLayout ] == NO ) {
1103+ if (self.supernode == nil && !self.supportsRangeManagedInterfaceState && [self _hasDirtyLayout ] == NO ) {
11041104 if (CGRectEqualToRect (bounds, CGRectZero)) {
11051105 LOG (@" Warning: No size given for node before node was trying to layout itself: %@ . Please provide a frame for the node." , self);
11061106 } else {
@@ -1113,7 +1113,7 @@ - (void)layout
11131113{
11141114 ASDisplayNodeAssertMainThread ();
11151115
1116- if ([self _dirtyLayout ]) {
1116+ if ([self _hasDirtyLayout ]) {
11171117 return ;
11181118 }
11191119
0 commit comments