| 2966 | } |
| 2967 | } |
| 2968 | |
| 2969 | if (!shouldVisitChildren) { |
| 2970 | return calculatedFrameDidChange; |
| 2971 | } |
| 2972 | |
| 2973 | float childrenViewOffsetX = 0.0f; |
| 2974 | float childrenViewOffsetY = 0.0f; |
| 2975 | |
| 2976 | if (isLayout()) { |
| 2977 | // If we are a layout node, we won't have a view so we need to compute the offset |
| 2978 | childrenViewOffsetX = viewOffsetX + _calculatedFrame.x; |
| 2979 | childrenViewOffsetY = viewOffsetY + _calculatedFrame.y; |
| 2980 | } else if (!hasParent()) { |
no test coverage detected