mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +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:
parent
9a90bf7d12
commit
9caa0bda7d
Notes:
sideshowbarker
2024-07-16 20:12:13 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9caa0bda7d
1 changed files with 1 additions and 0 deletions
|
@ -1978,6 +1978,7 @@
|
|||
"transform": {
|
||||
"inherited": false,
|
||||
"initial": "none",
|
||||
"affects-layout": false,
|
||||
"affects-stacking-context": true
|
||||
},
|
||||
"transform-origin": {
|
||||
|
|
Loading…
Reference in a new issue