mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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.
This commit is contained in:
parent
56435db820
commit
68f74d5cbe
6 changed files with 25 additions and 14 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue