diff options
-rw-r--r-- | components/layout/flow.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs index a4ea7f884d0..ce495865c30 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -394,7 +394,7 @@ pub trait ImmutableFlowUtils { fn is_leaf(self) -> bool; /// Returns the number of children that this flow possesses. - fn child_count(self) -> uint; + fn child_count(self) -> usize; /// Return true if this flow is a Block Container. fn is_block_container(self) -> bool; @@ -561,7 +561,7 @@ static HAS_FLOATED_DESCENDANTS_BITMASK: FlowFlags = FlowFlags { bits: 0b0000_001 /// The number of bits we must shift off to handle the text alignment field. /// /// NB: If you update this, update `TEXT_ALIGN` above. -static TEXT_ALIGN_SHIFT: uint = 11; +static TEXT_ALIGN_SHIFT: usize = 11; impl FlowFlags { /// Propagates text alignment flags from an appropriate parent flow per CSS 2.1. @@ -650,7 +650,7 @@ impl Descendants { } } - pub fn len(&self) -> uint { + pub fn len(&self) -> usize { self.descendant_links.len() } @@ -1152,7 +1152,7 @@ impl<'a> ImmutableFlowUtils for &'a (Flow + 'a) { } /// Returns the number of children that this flow possesses. - fn child_count(self) -> uint { + fn child_count(self) -> usize { base(self).children.len() } |