diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-11-17 12:25:52 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-17 12:25:52 -0600 |
commit | e4a27c4d16ee0e80ccd4ffd97a93c2b2a4f05391 (patch) | |
tree | 300b2b3a8a73c1746bb5a252b041d125a57cb8ee /components/script_layout_interface/lib.rs | |
parent | 870841099a5306e75766e6364296cf6d495467a0 (diff) | |
parent | 95a49863c72cc11ba41608e8a1216becc5dad75c (diff) | |
download | servo-e4a27c4d16ee0e80ccd4ffd97a93c2b2a4f05391.tar.gz servo-e4a27c4d16ee0e80ccd4ffd97a93c2b2a4f05391.zip |
Auto merge of #14214 - bholley:dirtiness_overhaul, r=emilio
Overhaul dirtiness handling in Servo to prepare for the new incremental restyle architecture
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14214)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script_layout_interface/lib.rs')
-rw-r--r-- | components/script_layout_interface/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script_layout_interface/lib.rs b/components/script_layout_interface/lib.rs index 284f6f33498..ff86579631c 100644 --- a/components/script_layout_interface/lib.rs +++ b/components/script_layout_interface/lib.rs @@ -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(), } } |