瀏覽代碼

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.
Andreas Kling 1 年之前
父節點
當前提交
9caa0bda7d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Userland/Libraries/LibWeb/CSS/Properties.json

+ 1 - 0
Userland/Libraries/LibWeb/CSS/Properties.json

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