mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
parent
dda2928386
commit
0547a6b313
5 changed files with 93 additions and 27 deletions
|
@ -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>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue