mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 11:15:34 +00:00
0b27e4437e
Previously, clip nodes interned the local clip information, but stored the spatial node and the local position as part of the instance. This was required since the local position of clips would change when a new display was sent after scrolling. However, since we now handle this via external scroll offsets, the local position is stable, and we can intern both the position and spatial node. This greatly simplifies some in-progress work for picture caching, where we want to be able to quickly identify clip chain nodes that are shared between elements of a display list. With this change, comparing the item uid of the interned clip node is enough to guarantee equality of the shared clips. Differential Revision: https://phabricator.services.mozilla.com/D44436 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
doc | ||
res | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml |