Extract ASLayoutElement and ASLayoutElementStylability into categories #trivial (#131)

* Initial move of code into layout category

* Cleanup

* Some more
This commit is contained in:
Michael Schneider
2017-05-02 14:38:06 -07:00
committed by GitHub
parent c671d2c6c6
commit b6734faa3b
10 changed files with 165 additions and 163 deletions

View File

@@ -29,17 +29,6 @@
#import YOGA_HEADER_PATH
#endif
extern void ASLayoutElementPerformBlockOnEveryElement(id<ASLayoutElement> element, void(^block)(id<ASLayoutElement> element))
{
if (element) {
block(element);
}
for (id<ASLayoutElement> subelement in element.sublayoutElements) {
ASLayoutElementPerformBlockOnEveryElement(subelement, block);
}
}
#pragma mark - ASLayoutElementContext
CGFloat const ASLayoutElementParentDimensionUndefined = NAN;