Huy Nguyen b01fac35b6
[ASDisplayNode+Layout] Ensure a pending layout is applied once (#695)
Before:
  - Even if a pending layout was applied before, it'll be unnecessarily applied again in next layout passes and cause `-calculatedLayoutDidChange` being called multiple times.

After:
  - If a pending layout was applied, the calculated layout will not be ignored but reused, if possible, in next layout passes.

Test plan: testSetNeedsLayoutAndNormalLayoutPass in #424.
2017-12-01 13:11:17 +00:00
..
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-02-26 18:14:13 -08:00