Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
May as well use the existing visibility function. (#1684)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmoon authored and appleguy committed May 22, 2016
1 parent e8a49b5 commit 94bb3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AsyncDisplayKit/ASDisplayNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ - (void)setShouldRasterizeDescendants:(BOOL)shouldRasterize
[self _addSubnodeViewsAndLayers];
}

if (self.interfaceState & ASInterfaceStateVisible) {
if (ASInterfaceStateIncludesVisible(self.interfaceState)) {
// TODO: Change this to recursivelyEnsureDisplay - but need a variant that does not skip
// nodes that have shouldBypassEnsureDisplay set (such as image nodes) so they are rasterized.
[self recursivelyDisplayImmediately];
Expand Down

0 comments on commit 94bb3b7

Please sign in to comment.