aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/wrapper.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-07-05 21:39:12 -0600
committerbors-servo <metajack+bors@gmail.com>2015-07-05 21:39:12 -0600
commitcc73aad447f0455606a5a6005d31aa55334668a8 (patch)
tree88c95a498e0ad40fa7998d4595f9aa0e9ca8c77e /components/layout/wrapper.rs
parentdb9e29a5f3c3600dcdd5c2b4e5a3e1e0baf917d7 (diff)
parent1a014beb08b143d57f8d8f138cb47ef60213be6a (diff)
downloadservo-cc73aad447f0455606a5a6005d31aa55334668a8.tar.gz
servo-cc73aad447f0455606a5a6005d31aa55334668a8.zip
Auto merge of #6546 - michaelwu:slim-layoutdatawrapper, r=Ms2ger
Remove LayoutChan from LayoutDataWrapper Saves 32 bytes in Node. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6546) <!-- Reviewable:end -->
Diffstat (limited to 'components/layout/wrapper.rs')
-rw-r--r--components/layout/wrapper.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs
index 020d6af3bbe..4de67c7e6c9 100644
--- a/components/layout/wrapper.rs
+++ b/components/layout/wrapper.rs
@@ -56,7 +56,6 @@ use script::dom::node::{Node, NodeTypeId};
use script::dom::node::{LayoutNodeHelpers, RawLayoutNodeHelpers, SharedLayoutData};
use script::dom::node::{HAS_CHANGED, IS_DIRTY, HAS_DIRTY_SIBLINGS, HAS_DIRTY_DESCENDANTS};
use script::dom::text::Text;
-use script::layout_interface::LayoutChan;
use smallvec::VecLike;
use msg::constellation_msg::{PipelineId, SubpageId};
use util::str::is_whitespace;
@@ -179,12 +178,11 @@ impl<'ln> LayoutNode<'ln> {
/// Resets layout data and styles for the node.
///
/// FIXME(pcwalton): Do this as part of fragment building instead of in a traversal.
- pub fn initialize_layout_data(self, chan: LayoutChan) {
+ pub fn initialize_layout_data(self) {
let mut layout_data_ref = self.mutate_layout_data();
match *layout_data_ref {
None => {
*layout_data_ref = Some(LayoutDataWrapper {
- chan: Some(chan),
shared_data: SharedLayoutData { style: None },
data: box PrivateLayoutData::new(),
});