()
| 1650 | // element can reuse an identity whose in-flow status differs. WeakMap has no |
| 1651 | // `clear()`, so drop both maps wholesale — re-derived lazily on next access. |
| 1652 | const invalidateTimedClipCaches = () => { |
| 1653 | timedClipInFlow = new WeakMap<Element, boolean>(); |
| 1654 | timedClipIsLeaf = new WeakMap<Element, boolean>(); |
| 1655 | }; |
| 1656 | |
| 1657 | const syncMediaForCurrentState = () => { |
| 1658 | const resolveMediaCompositionContext = (element: HTMLVideoElement | HTMLAudioElement) => { |