mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
7aabe03a28
Bug 1620014 attempted to fix an issue where an animated visual viewport offset (eg due to scrolling while being zoomed in) was causing the fractional offset of a descendant scroll frame's content transform to change, causing too much picture cache invalidation. It did so by snapping the coordinate-system-relative offset when using it to calculate the content_transform. This value of course includes the animated visual viewport offset (as the axis-aligned zoom transform cannot reset the coordinate system). However, it also includes non-animated offsets, which were now being incorrectly snapped, causing blurry/clipped text. This change reverts that original fix. And instead, it snaps the source_transform of the reference frame itself when it is sampled, rather than the accumulated coordinate-system-relative scale_offset of the scroll frame. Additionally, it only snaps the offset if it is an animation (including zoom), and static offsets are left unsnapped. Differential Revision: https://phabricator.services.mozilla.com/D76298 |
||
---|---|---|
.. | ||
2d | ||
angle | ||
cairo | ||
config | ||
docs | ||
gl | ||
graphite2 | ||
harfbuzz | ||
ipc | ||
layers | ||
ots | ||
qcms | ||
sfntly | ||
skia | ||
src | ||
tests | ||
thebes | ||
vr | ||
webrender_bindings | ||
wgpu | ||
wgpu_bindings | ||
wr | ||
ycbcr | ||
moz.build |