mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Eliminate HAS_CHANGED in favor of explicit RestyleDamage.
This commit is contained in:
parent
f1043f6305
commit
b31ed2298c
5 changed files with 18 additions and 36 deletions
|
@ -51,6 +51,7 @@ use libc::c_void;
|
|||
use std::sync::atomic::AtomicIsize;
|
||||
use style::atomic_refcell::AtomicRefCell;
|
||||
use style::data::ElementData;
|
||||
use style::dom::TRestyleDamage;
|
||||
use style::selector_impl::RestyleDamage;
|
||||
|
||||
pub struct PartialPersistentLayoutData {
|
||||
|
@ -71,7 +72,10 @@ impl PartialPersistentLayoutData {
|
|||
pub fn new() -> Self {
|
||||
PartialPersistentLayoutData {
|
||||
style_data: ElementData::new(),
|
||||
restyle_damage: RestyleDamage::empty(),
|
||||
// FIXME(bholley): This is needed for now to make sure we do frame
|
||||
// construction after initial styling. This will go away shortly when
|
||||
// we move restyle damage into the style system.
|
||||
restyle_damage: RestyleDamage::rebuild_and_reflow(),
|
||||
parallel: DomParallelInfo::new(),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,8 +86,6 @@ pub trait LayoutNode: GetLayoutData + TNode {
|
|||
unsafe fn init_style_and_layout_data(&self, data: OpaqueStyleAndLayoutData);
|
||||
unsafe fn take_style_and_layout_data(&self) -> OpaqueStyleAndLayoutData;
|
||||
|
||||
fn has_changed(&self) -> bool;
|
||||
|
||||
unsafe fn clear_dirty_bits(&self);
|
||||
|
||||
fn rev_children(self) -> LayoutIterator<ReverseChildrenIterator<Self>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue