mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
style: Force to stop computing children if we find the parent has display: none.
This commit is contained in:
parent
436c1b3089
commit
544a117911
9 changed files with 254 additions and 116 deletions
|
@ -47,6 +47,10 @@ impl TRestyleDamage for RestyleDamage {
|
|||
/// For Servo the style source is always the computed values.
|
||||
type PreExistingComputedValues = Arc<ServoComputedValues>;
|
||||
|
||||
fn empty() -> Self {
|
||||
RestyleDamage::empty()
|
||||
}
|
||||
|
||||
fn compute(old: Option<&Arc<ServoComputedValues>>,
|
||||
new: &Arc<ServoComputedValues>) -> RestyleDamage {
|
||||
compute_damage(old, new)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue