Bug 1800358 - Fix invalid scroll root selection in some cases. r=gfx-reviewers,jrmuizel

Reverts an optimization that can cause artifacts on some pages. We
need to do a deeper investigation at some point to find out why,
and then reenable the optimization.

Differential Revision: https://phabricator.services.mozilla.com/D168026
This commit is contained in:
Glenn Watson 2023-01-29 23:57:40 +00:00
Родитель 1e90b02453
Коммит 3f7b25bf9c
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -243,12 +243,7 @@ impl TileCacheBuilder {
.collect();
scroll_root_occurrences.retain(|parent_spatial_node_index, _| {
let parent_is_root = spatial_tree.is_root_coord_system(*parent_spatial_node_index);
scroll_roots.iter().all(|child_spatial_node_index| {
let child_is_root = spatial_tree.is_root_coord_system(*child_spatial_node_index);
(parent_is_root && child_is_root) ||
parent_spatial_node_index == child_spatial_node_index ||
spatial_tree.is_ancestor(
*parent_spatial_node_index,