Store SharedStyleContext in AbsoluteAssignBSizesTraversal.

This commit is contained in:
Ms2ger 2016-06-20 10:57:28 +02:00
parent e142b78850
commit 6f4b8f2505
2 changed files with 5 additions and 4 deletions

View file

@ -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() {