diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-06-20 19:55:48 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-06-22 14:26:52 +0200 |
commit | 9731a001dbe430570aaadf7c1a8fbfb2913bd4df (patch) | |
tree | d8cb30a2fcc9fec0db4c8cad607dcfee15f97496 /components/layout/flex.rs | |
parent | 018bebe90dc527b796c3ab66993aad522dc0c14a (diff) | |
download | servo-9731a001dbe430570aaadf7c1a8fbfb2913bd4df.tar.gz servo-9731a001dbe430570aaadf7c1a8fbfb2913bd4df.zip |
Pass SharedStyleContext to compute_used_inline_size.
Diffstat (limited to 'components/layout/flex.rs')
-rw-r--r-- | components/layout/flex.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/layout/flex.rs b/components/layout/flex.rs index dd279bbdfdf..200402cf42f 100644 --- a/components/layout/flex.rs +++ b/components/layout/flex.rs @@ -25,6 +25,7 @@ use script_layout_interface::restyle_damage::{REFLOW, REFLOW_OUT_OF_FLOW}; use std::cmp::max; use std::sync::Arc; use style::computed_values::flex_direction; +use style::context::StyleContext; use style::logical_geometry::LogicalSize; use style::properties::{ComputedValues, ServoComputedValues}; use style::values::computed::{LengthOrPercentage, LengthOrPercentageOrAuto, LengthOrPercentageOrNone}; @@ -413,7 +414,7 @@ impl Flow for FlexFlow { // Our inline-size was set to the inline-size of the containing block by the flow's parent. // Now compute the real value. let containing_block_inline_size = self.block_flow.base.block_container_inline_size; - self.block_flow.compute_used_inline_size(layout_context, containing_block_inline_size); + self.block_flow.compute_used_inline_size(layout_context.shared_context(), containing_block_inline_size); if self.block_flow.base.flags.is_float() { self.block_flow.float.as_mut().unwrap().containing_inline_size = containing_block_inline_size } |