diff options
author | Pu Xingyu <pu.stshine@gmail.com> | 2017-04-14 23:44:20 +0800 |
---|---|---|
committer | Pu Xingyu <pu.stshine@gmail.com> | 2017-04-23 08:32:25 +0800 |
commit | 68f74d5cbe2ffeca8bb6144abeec258a89edc440 (patch) | |
tree | b1b95aab3fc50f07e8bf1d042d2b72a4ee7de552 /components/layout/incremental.rs | |
parent | 56435db820ad13d7fcb9acf9ce4fa84667234706 (diff) | |
download | servo-68f74d5cbe2ffeca8bb6144abeec258a89edc440.tar.gz servo-68f74d5cbe2ffeca8bb6144abeec258a89edc440.zip |
Force reflow in the sequential fallback of block format context
When reflowing a block format context during the inorder traversal,
propagate restyle damage manually to its children since they were
already reflowed.
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 \ |