From 5e35ef7938c07826dfd3ee55650499c24a256347 Mon Sep 17 00:00:00 2001 From: Scott Goodson Date: Mon, 29 Feb 2016 00:46:45 -0800 Subject: [PATCH] [ASDisplayNode] Ensure display is triggered properly even before layers are onscreen (in display range). --- AsyncDisplayKit/Private/ASDisplayNode+UIViewBridge.mm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/AsyncDisplayKit/Private/ASDisplayNode+UIViewBridge.mm b/AsyncDisplayKit/Private/ASDisplayNode+UIViewBridge.mm index b3b69595f4..e947ea8ed5 100644 --- a/AsyncDisplayKit/Private/ASDisplayNode+UIViewBridge.mm +++ b/AsyncDisplayKit/Private/ASDisplayNode+UIViewBridge.mm @@ -321,12 +321,7 @@ if (shouldApply) { _layer.layerProperty = (layerValueExpr); } else { ASDisplayNo // which may call -displayIfNeeded. We want to ensure the needsDisplay flag is set now, and then cleared. _messageToViewOrLayer(setNeedsDisplay); } else { - if (__loaded(self)) { - // In this case, the node is loaded but we are on a background thread. Apply setNeedsDisplay so it is communicated - // to the backing view / layer in the next main thread flush. If the view / layer are not loaded, then - // Core Animation automatically considers them as "needsDisplay" if applicable when they are added to the hierarchy. - [ASDisplayNodeGetPendingState(self) setNeedsDisplay]; - } + [ASDisplayNodeGetPendingState(self) setNeedsDisplay]; } [self __setNeedsDisplay]; }