From 27cc2bec82fa7d7779e87a5756c4bbf798241d65 Mon Sep 17 00:00:00 2001 From: Michael Schneider Date: Tue, 5 Apr 2016 14:21:55 -0700 Subject: [PATCH] Add merging ASEnvironmentStateExtensions on upward propegation --- .../Private/ASEnvironmentInternal.h | 2 + .../Private/ASEnvironmentInternal.mm | 73 +++++++++++++------ 2 files changed, 51 insertions(+), 24 deletions(-) diff --git a/AsyncDisplayKit/Private/ASEnvironmentInternal.h b/AsyncDisplayKit/Private/ASEnvironmentInternal.h index 9cf9a11e55..e69bed23a0 100644 --- a/AsyncDisplayKit/Private/ASEnvironmentInternal.h +++ b/AsyncDisplayKit/Private/ASEnvironmentInternal.h @@ -35,6 +35,8 @@ void ASEnvironmentPerformBlockOnObjectAndParents(id object, void( #pragma mark - Merging +static const struct ASEnvironmentStateExtensions ASEnvironmentDefaultStateExtensions = {}; + static const struct ASEnvironmentLayoutOptionsState ASEnvironmentDefaultLayoutOptionsState = {}; ASEnvironmentState ASEnvironmentMergeObjectAndState(ASEnvironmentState environmentState, ASEnvironmentLayoutOptionsState state, ASEnvironmentStatePropagation propagation); diff --git a/AsyncDisplayKit/Private/ASEnvironmentInternal.mm b/AsyncDisplayKit/Private/ASEnvironmentInternal.mm index b49fbd0e48..909787a560 100644 --- a/AsyncDisplayKit/Private/ASEnvironmentInternal.mm +++ b/AsyncDisplayKit/Private/ASEnvironmentInternal.mm @@ -96,13 +96,13 @@ UIEdgeInsets _ASEnvironmentLayoutOptionsExtensionGetEdgeInsetsAtIndex(id