style: More fine-grained viewport units invalidation

This should speed up window resize significantly.

Differential Revision: https://phabricator.services.mozilla.com/D118878
This commit is contained in:
Emilio Cobos Álvarez 2023-05-22 10:01:09 +02:00 committed by Oriol Brufau
parent 85b7a60a69
commit 25edb3c21b
6 changed files with 88 additions and 1 deletions

View file

@ -101,6 +101,9 @@ bitflags! {
/// Whether there are author-specified rules for `word-spacing`.
const HAS_AUTHOR_SPECIFIED_WORD_SPACING = 1 << 19;
/// Whether the style depends on viewport units.
const USES_VIEWPORT_UNITS = 1 << 20;
}
}