Bug 1854757 - Relax assert to account for snapshots that we take for relative selector invalidation. r=dshin

Not sure how easy would it be to construct a test-case for this...

Differential Revision: https://phabricator.services.mozilla.com/D189061
This commit is contained in:
Emilio Cobos Álvarez 2023-09-25 15:26:35 +00:00
Родитель 690a9e089f
Коммит b2e89b7820
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -405,6 +405,7 @@ pub fn recalc_style_at<E, D, F>(
context.thread_local.statistics.elements_traversed += 1;
debug_assert!(
flags.intersects(TraversalFlags::AnimationOnly) ||
is_initial_style ||
!element.has_snapshot() ||
element.handled_snapshot(),
"Should've handled snapshots here already"