| 2945 | } |
| 2946 | |
| 2947 | if (_flags[kHasLazyLayoutNeedingCalculationFlag]) { |
| 2948 | _flags[kHasLazyLayoutNeedingCalculationFlag] = false; |
| 2949 | // One of our child has a dirty lazyLayout that needs to be calculated, so we need to visit it |
| 2950 | shouldVisitChildren = true; |
| 2951 | } |
| 2952 | |
| 2953 | // Step 3: If we are a lazyLayout, we compute the nested layout if we are visible |
| 2954 | |
| 2955 | if (_flags[kIsLazyLayoutFlag] && getLazyLayoutYogaNode() != nullptr && _flags[kVisibleInViewportFlag]) { |
| 2956 | if (updateLazyLayout()) { |
| 2957 | didPerformLayoutForChildren = true; |
| 2958 | shouldVisitChildren = true; |