mirror of
https://github.com/servo/servo
synced 2026-05-09 08:32:31 +02:00
This change adds support for a blinking text caret using WebRender `DynamicProperties` updates. This ensures that text caret updates are as lightweight as possible. As part of this change, the initial framework for paint-side animations is added. Though this is driven by a timer for now (in order to not have to run full speed animations for text carets), the idea is that more animations can be driven by `Paint` in the future (in order to avoid doing layouts during animations). In addition, a preference is added which controls the caret blink speed. This is used to disable caret blinking during WPT testing. Testing: There are no tests for this change. We do not currently have a good way to test caret blinking as the caret is render only and fully testing blinking would require well timed screenshot creation. Fixes: #33237. Signed-off-by: Martin Robinson <mrobinson@igalia.com>