(workInProgress, renderTime)
| 13138 | } |
| 13139 | |
| 13140 | function resetExpirationTime(workInProgress, renderTime) { |
| 13141 | if (renderTime !== Never && workInProgress.expirationTime === Never) { |
| 13142 | // The children of this component are hidden. Don't bubble their |
| 13143 | // expiration times. |
| 13144 | return; |
| 13145 | } |
| 13146 | |
| 13147 | // Check for pending updates. |
| 13148 | var newExpirationTime = getUpdateExpirationTime(workInProgress); |
| 13149 | |
| 13150 | // TODO: Calls need to visit stateNode |
| 13151 | |
| 13152 | // Bubble up the earliest expiration time. |
| 13153 | var child = workInProgress.child; |
| 13154 | while (child !== null) { |
| 13155 | if (child.expirationTime !== NoWork && (newExpirationTime === NoWork || newExpirationTime > child.expirationTime)) { |
| 13156 | newExpirationTime = child.expirationTime; |
| 13157 | } |
| 13158 | child = child.sibling; |
| 13159 | } |
| 13160 | workInProgress.expirationTime = newExpirationTime; |
| 13161 | } |
| 13162 | |
| 13163 | function completeUnitOfWork(workInProgress) { |
| 13164 | // Attempt to complete the current unit of work, then move to the |
no test coverage detected