aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/lib.rs
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2016-11-14 15:32:35 -0800
committerBobby Holley <bobbyholley@gmail.com>2016-11-16 12:09:49 -0800
commitb31ed2298c240fc364cb69ac3003048d7244e4b1 (patch)
treee60e44b0ba93ac0a3f8b9e88758cd0c9fe101b79 /components/script_layout_interface/lib.rs
parentf1043f630563a7c4a4f3fcff11f6f63b3e9afaa2 (diff)
downloadservo-b31ed2298c240fc364cb69ac3003048d7244e4b1.tar.gz
servo-b31ed2298c240fc364cb69ac3003048d7244e4b1.zip
Eliminate HAS_CHANGED in favor of explicit RestyleDamage.
Diffstat (limited to 'components/script_layout_interface/lib.rs')
-rw-r--r--components/script_layout_interface/lib.rs6
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(),
}
}