mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Eliminate RestyleData entirely.
Without this change, the previous commit increases the size of ElementData. MozReview-Commit-ID: 87BZuXINiT9
This commit is contained in:
parent
61cad869d9
commit
50cee3e133
12 changed files with 66 additions and 94 deletions
|
@ -1168,7 +1168,7 @@ impl LayoutThread {
|
|||
}
|
||||
if had_used_viewport_units {
|
||||
if let Some(mut data) = element.mutate_data() {
|
||||
data.restyle.hint.insert(RestyleHint::recascade_subtree());
|
||||
data.hint.insert(RestyleHint::recascade_subtree());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1250,9 +1250,9 @@ impl LayoutThread {
|
|||
let mut style_data = style_data.borrow_mut();
|
||||
|
||||
// Stash the data on the element for processing by the style system.
|
||||
style_data.restyle.hint.insert(restyle.hint.into());
|
||||
style_data.restyle.damage = restyle.damage;
|
||||
debug!("Noting restyle for {:?}: {:?}", el, style_data.restyle);
|
||||
style_data.hint.insert(restyle.hint.into());
|
||||
style_data.damage = restyle.damage;
|
||||
debug!("Noting restyle for {:?}: {:?}", el, style_data);
|
||||
}
|
||||
|
||||
// Create a layout context for use throughout the following passes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue