aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_cell.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-06-20 19:55:48 +0200
committerMs2ger <Ms2ger@gmail.com>2016-06-22 14:26:52 +0200
commit9731a001dbe430570aaadf7c1a8fbfb2913bd4df (patch)
treed8cb30a2fcc9fec0db4c8cad607dcfee15f97496 /components/layout/table_cell.rs
parent018bebe90dc527b796c3ab66993aad522dc0c14a (diff)
downloadservo-9731a001dbe430570aaadf7c1a8fbfb2913bd4df.tar.gz
servo-9731a001dbe430570aaadf7c1a8fbfb2913bd4df.zip
Pass SharedStyleContext to compute_used_inline_size.
Diffstat (limited to 'components/layout/table_cell.rs')
-rw-r--r--components/layout/table_cell.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/layout/table_cell.rs b/components/layout/table_cell.rs
index 4f043e351c4..8e487ba97da 100644
--- a/components/layout/table_cell.rs
+++ b/components/layout/table_cell.rs
@@ -23,6 +23,7 @@ use script_layout_interface::wrapper_traits::ThreadSafeLayoutNode;
use std::fmt;
use std::sync::Arc;
use style::computed_values::{border_collapse, border_top_style, vertical_align};
+use style::context::StyleContext;
use style::logical_geometry::{LogicalMargin, LogicalRect, LogicalSize, WritingMode};
use style::properties::{ComputedValues, ServoComputedValues};
use table::InternalTable;
@@ -174,7 +175,7 @@ impl Flow for TableCellFlow {
border_collapse: self.block_flow.fragment.style.get_inheritedtable().border_collapse,
};
inline_size_computer.compute_used_inline_size(&mut self.block_flow,
- layout_context,
+ layout_context.shared_context(),
containing_block_inline_size);
let inline_start_content_edge =