+19
−0
+38
−0
Loading
Bug 1762656 [wpt PR 33475] - Use separate transform tree nodes for translate/rotate/scale/offset/transform., a=testonly Automatic update from web-platform-tests Use separate transform tree nodes for translate/rotate/scale/offset/transform. Rather than using a single node in the transform tree, use separate nodes for the CSS 'translate', 'rotate', 'scale', 'offset-*', and 'transform' properties. This is needed to animate these properties simultaneously on the compositor. It only increases the number of nodes when more than one of these features are in use on the same element. https://docs.google.com/document/d/18Kf6gwMX3-4D8eLBcGFn2fQpxG31vkDcq1nESFQHB9U/edit documents a few of the design decisions that went into this change. This makes the following minor behavior change: * This distinguishes will-change: scale, will-change: rotate, will-change: translate from the other properties (transform, transform-style, perspective) that are transform-related compositing triggers and ensure creation of transform nodes, since they now ensure the creation *different* transform nodes. In other words, they now trigger a slightly different optimization rather than exactly the same one. Likewise, will-change: offset-path and will-change: offset-position continue to force compositing but no longer have any effect on the cc transform tree. Bug: 696374 Change-Id: I21ea753d14216d46fddcebc253b6a196525ad55e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3329127 Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: David Baron <dbaron@chromium.org> Cr-Commit-Position: refs/heads/main@{#1006069} -- wpt-commits: b0c18e11e09bf0d47d04bec1766a5d8f4c5d636a wpt-pr: 33475