diff options
Diffstat (limited to 'components/layout/incremental.rs')
-rw-r--r-- | components/layout/incremental.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/layout/incremental.rs b/components/layout/incremental.rs index d24cda3307b..dd6b125938f 100644 --- a/components/layout/incremental.rs +++ b/components/layout/incremental.rs @@ -7,6 +7,13 @@ use style::computed_values::float; use style::selector_parser::RestyleDamage; use style::servo::restyle_damage::{REFLOW, RECONSTRUCT_FLOW}; +/// Used in a flow traversal to indicate whether this re-layout should be incremental or not. +#[derive(Clone, Copy, PartialEq)] +pub enum RelayoutMode { + Incremental, + Force +} + bitflags! { pub flags SpecialRestyleDamage: u8 { #[doc = "If this flag is set, we need to reflow the entire document. This is more or less a \ |