Skip to content

Commit

Permalink
Revert unreleased layout debugging method name change from #1030 #tri…
Browse files Browse the repository at this point in the history
…vial
  • Loading branch information
Adlai-Holler committed Jul 18, 2018
1 parent 9958aac commit 9ade2b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/Layout/ASLayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ AS_EXTERN ASLayout *ASCalculateLayout(id<ASLayoutElement>layoutElement, const AS

/**
* Set to YES to tell all ASLayout instances to retain their sublayout elements. Defaults to NO.
* See `-retainSublayoutElements` to control this per-instance.
* See `-retainSublayoutLayoutElements` to control this per-instance.
*/
@property (class) BOOL shouldRetainSublayoutElements;
@property (class) BOOL shouldRetainSublayoutLayoutElements;

/**
* Recrusively output the description of the layout tree.
Expand Down
4 changes: 2 additions & 2 deletions Source/Layout/ASLayout.mm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ @interface ASLayout () <ASDescriptionProvider>
}

/// Call this to keep sublayout elements alive. Multiple calls have no effect.
- (void)retainSublayoutElements;
- (void)retainSublayoutLayoutElements;

@property (nonatomic, readonly) ASRectMap *elementToRectMap;

Expand Down Expand Up @@ -182,7 +182,7 @@ - (void)dealloc

#pragma mark - Sublayout Elements Caching

- (void)retainSublayoutElements
- (void)retainSublayoutLayoutElements
{
if (_retainSublayoutElements.exchange(true)) {
return;
Expand Down

0 comments on commit 9ade2b1

Please sign in to comment.