diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-06-24 12:57:47 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-06-24 14:55:43 +0200 |
commit | 2ea32829af1abaf35e5b37c3bbf7ca128fb343c3 (patch) | |
tree | 2db9440f844206fccce10f8a4f2f66fe8dd6a23b /components/layout/construct.rs | |
parent | 6247a96761279979412fb49fa4fbca2fd9a82e1b (diff) | |
download | servo-2ea32829af1abaf35e5b37c3bbf7ca128fb343c3.tar.gz servo-2ea32829af1abaf35e5b37c3bbf7ca128fb343c3.zip |
Replace OpaqueNodeMethods::from_{threadsafe_,}layout_node by opaque methods.
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r-- | components/layout/construct.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index 2742c18d271..d3e568b1076 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -31,7 +31,6 @@ use incremental::{RECONSTRUCT_FLOW, RestyleDamage}; use inline::{InlineFlow, InlineFragmentNodeInfo}; use list_item::{ListItemFlow, ListStyleTypeContent}; use multicol::MulticolFlow; -use opaque_node::OpaqueNodeMethods; use parallel; use table::TableFlow; use table_caption::TableCaptionFlow; @@ -209,7 +208,7 @@ impl InlineFragmentsAccumulator { InlineFragmentsAccumulator { fragments: IntermediateInlineFragments::new(), enclosing_node: Some(InlineFragmentNodeInfo { - address: OpaqueNodeMethods::from_thread_safe_layout_node(node), + address: node.opaque(), style: node.style().clone(), }), } @@ -690,9 +689,8 @@ impl<'a> FlowConstructor<'a> { } }; - let opaque_node = OpaqueNodeMethods::from_thread_safe_layout_node(node); fragments.fragments - .push_back(Fragment::from_opaque_node_and_style(opaque_node, + .push_back(Fragment::from_opaque_node_and_style(node.opaque(), style.clone(), node.restyle_damage(), specific)) @@ -852,9 +850,8 @@ impl<'a> FlowConstructor<'a> { // // FIXME(#2001, pcwalton): Don't do this if there's padding or borders. if node.is_ignorable_whitespace() { - let opaque_node = OpaqueNodeMethods::from_thread_safe_layout_node(node); return ConstructionResult::ConstructionItem(ConstructionItem::Whitespace( - opaque_node, + node.opaque(), node.style().clone(), node.restyle_damage())) } |