diff options
Diffstat (limited to 'src/components/main/layout/construct.rs')
-rw-r--r-- | src/components/main/layout/construct.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs index 18ff1654888..8eaa6d25c80 100644 --- a/src/components/main/layout/construct.rs +++ b/src/components/main/layout/construct.rs @@ -7,7 +7,7 @@ //! Each step of the traversal considers the node and existing flow, if there is one. If a node is //! not dirty and an existing flow exists, then the traversal reuses that flow. Otherwise, it //! proceeds to construct either a flow or a `ConstructionItem`. A construction item is a piece of -//! intermediate data that goes with a DOM node and hasn't found its "home" yet—maybe it's a box, +//! intermediate data that goes with a DOM node and hasn't found its "home" yet-maybe it's a box, //! maybe it's an absolute or fixed position thing that hasn't found its containing block yet. //! Construction items bubble up the tree from children to parents until they find their homes. //! @@ -70,7 +70,7 @@ struct InlineBoxesConstructionResult { splits: Option<~[InlineBlockSplit]>, /// Any boxes that succeed the {ib} splits. - boxes: ~[@Box], + boxes: ~[~Box], } /// Represents an {ib} split that has not yet found the containing block that it belongs to. This @@ -99,7 +99,7 @@ struct InlineBlockSplit { /// The inline boxes that precede the flow. /// /// TODO(pcwalton): Small vector optimization. - predecessor_boxes: ~[@Box], + predecessor_boxes: ~[~Box], /// The flow that caused this {ib} split. flow: ~Flow:, @@ -215,7 +215,7 @@ impl<'self> FlowConstructor<'self> { } /// Builds a `Box` for the given node. - fn build_box_for_node(&self, node: AbstractNode<LayoutView>) -> @Box { + fn build_box_for_node(&self, node: AbstractNode<LayoutView>) -> ~Box { let specific = match node.type_id() { ElementNodeTypeId(HTMLImageElementTypeId) => { match self.build_box_info_for_image(node) { @@ -226,7 +226,7 @@ impl<'self> FlowConstructor<'self> { TextNodeTypeId => UnscannedTextBox(UnscannedTextBoxInfo::new(&node)), _ => GenericBox, }; - @Box::new(node, specific) + ~Box::new(node, specific) } /// Creates an inline flow from a set of inline boxes and adds it as a child of the given flow. @@ -235,7 +235,7 @@ impl<'self> FlowConstructor<'self> { /// otherwise. #[inline(always)] fn flush_inline_boxes_to_flow(&self, - boxes: ~[@Box], + boxes: ~[~Box], flow: &mut ~Flow:, node: AbstractNode<LayoutView>) { if boxes.len() > 0 { @@ -249,7 +249,7 @@ impl<'self> FlowConstructor<'self> { /// Creates an inline flow from a set of inline boxes, if present, and adds it as a child of /// the given flow. fn flush_inline_boxes_to_flow_if_necessary(&self, - opt_boxes: &mut Option<~[@Box]>, + opt_boxes: &mut Option<~[~Box]>, flow: &mut ~Flow:, node: AbstractNode<LayoutView>) { let opt_boxes = util::replace(opt_boxes, None); @@ -564,7 +564,7 @@ impl NodeUtils for AbstractNode<LayoutView> { } /// Strips ignorable whitespace from the start of a list of boxes. -fn strip_ignorable_whitespace_from_start(opt_boxes: &mut Option<~[@Box]>) { +fn strip_ignorable_whitespace_from_start(opt_boxes: &mut Option<~[~Box]>) { match util::replace(opt_boxes, None) { None => return, Some(boxes) => { @@ -586,7 +586,7 @@ fn strip_ignorable_whitespace_from_start(opt_boxes: &mut Option<~[@Box]>) { } /// Strips ignorable whitespace from the end of a list of boxes. -fn strip_ignorable_whitespace_from_end(opt_boxes: &mut Option<~[@Box]>) { +fn strip_ignorable_whitespace_from_end(opt_boxes: &mut Option<~[~Box]>) { match *opt_boxes { None => {} Some(ref mut boxes) => { |