(root, expirationTime)
| 24319 | } |
| 24320 | } |
| 24321 | function markRootUpdatedAtTime(root, expirationTime) { |
| 24322 | // Update the range of pending times |
| 24323 | var firstPendingTime = root.firstPendingTime; |
| 24324 | |
| 24325 | if (expirationTime > firstPendingTime) { |
| 24326 | root.firstPendingTime = expirationTime; |
| 24327 | } // Update the range of suspended times. Treat everything lower priority or |
| 24328 | // equal to this update as unsuspended. |
| 24329 | |
| 24330 | |
| 24331 | var firstSuspendedTime = root.firstSuspendedTime; |
| 24332 | |
| 24333 | if (firstSuspendedTime !== NoWork) { |
| 24334 | if (expirationTime >= firstSuspendedTime) { |
| 24335 | // The entire suspended range is now unsuspended. |
| 24336 | root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork; |
| 24337 | } else if (expirationTime >= root.lastSuspendedTime) { |
| 24338 | root.lastSuspendedTime = expirationTime + 1; |
| 24339 | } // This is a pending level. Check if it's higher priority than the next |
| 24340 | // known pending level. |
| 24341 | |
| 24342 | |
| 24343 | if (expirationTime > root.nextKnownPendingLevel) { |
| 24344 | root.nextKnownPendingLevel = expirationTime; |
| 24345 | } |
| 24346 | } |
| 24347 | } |
| 24348 | function markRootFinishedAtTime(root, finishedExpirationTime, remainingExpirationTime) { |
| 24349 | // Update the range of pending times |
| 24350 | root.firstPendingTime = remainingExpirationTime; // Update the range of suspended times. Treat everything higher priority or |
no outgoing calls
no test coverage detected