| 27906 | } |
| 27907 | } |
| 27908 | function markRootFinishedAtTime(root, finishedExpirationTime, remainingExpirationTime) { |
| 27909 | // Update the range of pending times |
| 27910 | root.firstPendingTime = remainingExpirationTime; // Update the range of suspended times. Treat everything higher priority or |
| 27911 | // equal to this update as unsuspended. |
| 27912 | |
| 27913 | if (finishedExpirationTime <= root.lastSuspendedTime) { |
| 27914 | // The entire suspended range is now unsuspended. |
| 27915 | root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork; |
| 27916 | } else if (finishedExpirationTime <= root.firstSuspendedTime) { |
| 27917 | // Part of the suspended range is now unsuspended. Narrow the range to |
| 27918 | // include everything between the unsuspended time (non-inclusive) and the |
| 27919 | // last suspended time. |
| 27920 | root.firstSuspendedTime = finishedExpirationTime - 1; |
| 27921 | } |
| 27922 | |
| 27923 | if (finishedExpirationTime <= root.lastPingedTime) { |
| 27924 | // Clear the pinged time |
| 27925 | root.lastPingedTime = NoWork; |
| 27926 | } |
| 27927 | |
| 27928 | if (finishedExpirationTime <= root.lastExpiredTime) { |
| 27929 | // Clear the expired time |
| 27930 | root.lastExpiredTime = NoWork; |
| 27931 | } |
| 27932 | } |
| 27933 | function markRootExpiredAtTime(root, expirationTime) { |
| 27934 | var lastExpiredTime = root.lastExpiredTime; |
| 27935 | |