Update comments of setNeedsLayout and setNeedsDisplay of ASDisplayNode.

This commit is contained in:
Huy Nguyen
2015-08-03 02:30:08 +03:00
parent 56768a837a
commit 0acfea234f

View File

@@ -505,10 +505,13 @@ typedef CALayer *(^ASDisplayNodeLayerBlock)();
*/
@interface ASDisplayNode (UIViewBridge)
- (void)setNeedsDisplay; // Marks the view as needing display. Convenience for use whether view is created or not, or from a background thread.
/**
* Marks the view as needing display. Convenience for use whether the view / layer is loaded or not. Safe to call from a background thread.
*/
- (void)setNeedsDisplay;
/**
* Marks the view as needing layout. Convenience for use whether view is created or not, or from a background thread.
* Marks the node as needing layout. Convenience for use whether the view / layer is loaded or not. Safe to call from a background thread.
*
* If this node was measured, calling this method triggers an internal relayout: the calculated layout is invalidated,
* and the supernode is notified or (if this node is the root one) a full measurement pass is executed using the old constrained size.