aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/lib.rs
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2016-11-01 23:11:24 -0700
committerBobby Holley <bobbyholley@gmail.com>2016-11-24 17:07:38 -0800
commit992f7dddf4771cf298c3510fca82b497d2593750 (patch)
tree1d495d5597da007294c79fc009b17d7f07288cf4 /components/script_layout_interface/lib.rs
parente1eff691f8a1d8c9c7ab33344364f0419626b80e (diff)
downloadservo-992f7dddf4771cf298c3510fca82b497d2593750.tar.gz
servo-992f7dddf4771cf298c3510fca82b497d2593750.zip
Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal.
MozReview-Commit-ID: 7wH5XcILVmX
Diffstat (limited to 'components/script_layout_interface/lib.rs')
-rw-r--r--components/script_layout_interface/lib.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/components/script_layout_interface/lib.rs b/components/script_layout_interface/lib.rs
index 5894e96049a..d52990fa8f4 100644
--- a/components/script_layout_interface/lib.rs
+++ b/components/script_layout_interface/lib.rs
@@ -51,8 +51,6 @@ 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_parser::RestyleDamage;
pub struct PartialPersistentLayoutData {
/// Data that the style system associates with a node. When the
@@ -61,9 +59,6 @@ pub struct PartialPersistentLayoutData {
/// transmutations between ElementData and PersistentLayoutData.
pub style_data: ElementData,
- /// Description of how to account for recent style changes.
- pub restyle_damage: RestyleDamage,
-
/// Information needed during parallel traversals.
pub parallel: DomParallelInfo,
}
@@ -71,11 +66,7 @@ pub struct PartialPersistentLayoutData {
impl PartialPersistentLayoutData {
pub fn new() -> Self {
PartialPersistentLayoutData {
- style_data: ElementData::new(),
- // 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(),
+ style_data: ElementData::new(None),
parallel: DomParallelInfo::new(),
}
}
@@ -142,7 +133,7 @@ pub struct SVGSVGData {
}
/// The address of a node known to be valid. These are sent from script to layout.
-#[derive(Clone, PartialEq, Eq, Copy)]
+#[derive(Clone, Debug, PartialEq, Eq, Copy)]
pub struct TrustedNodeAddress(pub *const c_void);
#[allow(unsafe_code)]