1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 09:54:57 +00:00

LibWeb: Don't relayout whenever a CSS transform changes

Transforms are a paint-level concept for us, so we should be okay to
only update the stacking context tree and repaint.

This makes a lot of CSS animations use way less CPU.
This commit is contained in:
Andreas Kling 2023-07-27 09:54:45 +02:00
parent 9a90bf7d12
commit 9caa0bda7d

View file

@ -1978,6 +1978,7 @@
"transform": { "transform": {
"inherited": false, "inherited": false,
"initial": "none", "initial": "none",
"affects-layout": false,
"affects-stacking-context": true "affects-stacking-context": true
}, },
"transform-origin": { "transform-origin": {