aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_cell.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/table_cell.rs')
-rw-r--r--components/layout/table_cell.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/components/layout/table_cell.rs b/components/layout/table_cell.rs
index 2b89c693599..ad6d2ca1804 100644
--- a/components/layout/table_cell.rs
+++ b/components/layout/table_cell.rs
@@ -25,7 +25,7 @@ use table::InternalTable;
use table_row::{CollapsedBorder, CollapsedBorderProvenance};
use util::logical_geometry::{LogicalMargin, LogicalRect, LogicalSize, WritingMode};
use util::print_tree::PrintTree;
-use wrapper::{ServoThreadSafeLayoutNode, ThreadSafeLayoutNode};
+use wrapper::{ThreadSafeLayoutNode};
/// A table formatting context.
#[derive(RustcEncodable)]
@@ -45,10 +45,8 @@ pub struct TableCellFlow {
}
impl TableCellFlow {
- pub fn from_node_fragment_and_visibility_flag(node: &ServoThreadSafeLayoutNode,
- fragment: Fragment,
- visible: bool)
- -> TableCellFlow {
+ pub fn from_node_fragment_and_visibility_flag<'ln, N: ThreadSafeLayoutNode<'ln>>(
+ node: &N, fragment: Fragment, visible: bool) -> TableCellFlow {
TableCellFlow {
block_flow: BlockFlow::from_fragment(fragment, None),
collapsed_borders: CollapsedBordersForCell::new(),