Expand description
Nested clip-rectangle stack with intersection and integer-scissor output.
The ClipStack tracks a hierarchy of rectangular clip regions. Pushing a
new rect intersects it with the current top so the effective clip region is
always the intersection of all active rects. The stack never panics on
underflow — extra pops are silently ignored.