diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-06-20 10:57:28 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-06-22 14:09:54 +0200 |
commit | 6f4b8f2505e28a1c79c5c53e52e27b5bb94de28f (patch) | |
tree | e8b095a03dc2d23884632b1bda31b51f78fba552 /components/layout/inline.rs | |
parent | e142b78850efc4df06c23014a9515cb742e47e1e (diff) | |
download | servo-6f4b8f2505e28a1c79c5c53e52e27b5bb94de28f.tar.gz servo-6f4b8f2505e28a1c79c5c53e52e27b5bb94de28f.zip |
Store SharedStyleContext in AbsoluteAssignBSizesTraversal.
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r-- | components/layout/inline.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs index ab2054a00ac..d2fa2cc84f4 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -33,6 +33,7 @@ use std::sync::Arc; use std::{fmt, i32, isize, mem}; use style::computed_values::{display, overflow_x, position, text_align, text_justify}; use style::computed_values::{text_overflow, vertical_align, white_space}; +use style::context::StyleContext; use style::logical_geometry::{LogicalRect, LogicalSize, WritingMode}; use style::properties::{ComputedValues, ServoComputedValues}; use style::values::computed::LengthOrPercentage; @@ -1466,7 +1467,7 @@ impl Flow for InlineFlow { // This is preorder because the block-size of an absolute flow may depend on // the block-size of its containing block, which may also be an absolute flow. (&mut *self as &mut Flow).traverse_preorder_absolute_flows( - &mut AbsoluteAssignBSizesTraversal(layout_context)); + &mut AbsoluteAssignBSizesTraversal(layout_context.shared_context())); } self.base.position.size.block = match self.lines.last() { |