Skip to content

Commit

Permalink
Fix method name typo in _locked_isLayoutTransitionInvalid #trivial (#963
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wsdwsd0829 authored and nguyenhuy committed Jun 12, 2018
1 parent f6c5dc3 commit 5c13cbe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/ASDisplayNode+Layout.mm
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ - (void)_u_measureNodeWithBoundsIfNecessary:(CGRect)bounds
} else if (pendingVersion == calculatedVersion
&& !ASSizeRangeEqualToSizeRange(_pendingDisplayNodeLayout->constrainedSize,
_calculatedDisplayNodeLayout->constrainedSize)) {
pendingLayoutIsPreferred = YES; // _pending with a different constrained size
}
pendingLayoutIsPreferred = YES; // _pending with a different constrained size
}
}
BOOL calculatedLayoutIsReusable = (_calculatedDisplayNodeLayout->isValid(_layoutVersion)
&& (_calculatedDisplayNodeLayout->requestedLayoutFromAbove
Expand Down Expand Up @@ -493,10 +493,10 @@ @implementation ASDisplayNode (ASLayoutTransition)
- (BOOL)_isLayoutTransitionInvalid
{
ASDN::MutexLocker l(__instanceLock__);
return [self _locked_isLayoutTransitionValid];
return [self _locked_isLayoutTransitionInvalid];
}

- (BOOL)_locked_isLayoutTransitionValid
- (BOOL)_locked_isLayoutTransitionInvalid
{
if (ASHierarchyStateIncludesLayoutPending(_hierarchyState)) {
ASLayoutElementContext *context = ASLayoutElementGetCurrentContext();
Expand Down Expand Up @@ -565,7 +565,7 @@ - (void)transitionLayoutWithSizeRange:(ASSizeRange)constrainedSize

// Check if we are a subnode in a layout transition.
// In this case no measurement is needed as we're part of the layout transition.
if ([self _locked_isLayoutTransitionValid]) {
if ([self _locked_isLayoutTransitionInvalid]) {
return;
}

Expand Down

0 comments on commit 5c13cbe

Please sign in to comment.