From 94bb3b79cb2f196b38fa332919728907422e5efd Mon Sep 17 00:00:00 2001 From: Garrett Moon Date: Sat, 21 May 2016 23:12:29 -0700 Subject: [PATCH] May as well use the existing visibility function. (#1684) --- AsyncDisplayKit/ASDisplayNode.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsyncDisplayKit/ASDisplayNode.mm b/AsyncDisplayKit/ASDisplayNode.mm index 78ebea1768..06818906fe 100644 --- a/AsyncDisplayKit/ASDisplayNode.mm +++ b/AsyncDisplayKit/ASDisplayNode.mm @@ -941,7 +941,7 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c) [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];