May as well use the existing visibility function. (#1684)

This commit is contained in:
Garrett Moon
2016-05-21 23:12:29 -07:00
committed by appleguy
parent e8a49b57bc
commit 94bb3b79cb

View File

@@ -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];