diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index 0458c2bb738..37cec720b1b 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -672,7 +672,7 @@ impl UnscannedTextFragmentInfo { #[derive(Copy, Clone)] pub struct TableColumnFragmentInfo { /// the number of columns a element should span - pub span: int, + pub span: u32, } impl TableColumnFragmentInfo { @@ -681,7 +681,7 @@ impl TableColumnFragmentInfo { let span = { let element = node.as_element(); element.get_attr(&ns!(""), &atom!("span")).and_then(|string| { - let n: Option = FromStr::from_str(string).ok(); + let n: Option = FromStr::from_str(string).ok(); n }).unwrap_or(0) }; diff --git a/components/layout/table_colgroup.rs b/components/layout/table_colgroup.rs index edb6d64bd0f..d112be8ce0b 100644 --- a/components/layout/table_colgroup.rs +++ b/components/layout/table_colgroup.rs @@ -69,7 +69,7 @@ impl Flow for TableColGroupFlow { for fragment in self.cols.iter() { // Retrieve the specified value from the appropriate CSS property. let inline_size = fragment.style().content_inline_size(); - let span: int = match fragment.specific { + let span = match fragment.specific { SpecificFragmentInfo::TableColumn(col_fragment) => max(col_fragment.span, 1), _ => panic!("non-table-column fragment inside table column?!"), };