Expand the role of modified_elements to include explicit restyle hints and damage.

This will take the place of setting IS_DIRTY and HAS_CHANGED.
This commit is contained in:
Bobby Holley 2016-11-14 13:29:41 -08:00
parent dda2928386
commit 0547a6b313
5 changed files with 93 additions and 27 deletions

View file

@ -4,6 +4,7 @@
use computed_values::display;
use dom::TRestyleDamage;
use heapsize::HeapSizeOf;
use properties::ServoComputedValues;
use std::fmt;
use std::sync::Arc;
@ -48,6 +49,10 @@ bitflags! {
}
}
impl HeapSizeOf for ServoRestyleDamage {
fn heap_size_of_children(&self) -> usize { 0 }
}
impl TRestyleDamage for ServoRestyleDamage {
/// For Servo the style source is always the computed values.
type PreExistingComputedValues = Arc<ServoComputedValues>;