aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/properties/computed_value_flags.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2023-05-22 10:01:09 +0200
committerOriol Brufau <obrufau@igalia.com>2023-05-24 18:32:37 +0200
commit25edb3c21bda1a98bca34942d8128b951f6476aa (patch)
tree08551d877d726f8e5f307a7747bc4b8067116e7a /components/style/properties/computed_value_flags.rs
parent85b7a60a6994818d742881811e9e08d200e5fa42 (diff)
downloadservo-25edb3c21bda1a98bca34942d8128b951f6476aa.tar.gz
servo-25edb3c21bda1a98bca34942d8128b951f6476aa.zip
style: More fine-grained viewport units invalidation
This should speed up window resize significantly. Differential Revision: https://phabricator.services.mozilla.com/D118878
Diffstat (limited to 'components/style/properties/computed_value_flags.rs')
-rw-r--r--components/style/properties/computed_value_flags.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/style/properties/computed_value_flags.rs b/components/style/properties/computed_value_flags.rs
index b3e5fe4f7f9..0942bbd0d13 100644
--- a/components/style/properties/computed_value_flags.rs
+++ b/components/style/properties/computed_value_flags.rs
@@ -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;
}
}