Use Servo-specific pseudo element for InlineAbsolute fragment

This commit is contained in:
Pu Xingyu 2017-03-21 14:15:20 +08:00
parent 836e554c30
commit 1677d479f6
5 changed files with 25 additions and 15 deletions

View file

@ -989,8 +989,9 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
let fragment_info = SpecificFragmentInfo::InlineAbsoluteHypothetical(
InlineAbsoluteHypotheticalFragmentInfo::new(block_flow));
let style_context = self.style_context();
let mut style = node.style(style_context);
properties::modify_style_for_inline_absolute_hypothetical_fragment(&mut style);
let style = node.style(style_context);
let style = style_context.stylist.style_for_anonymous_box(
&style_context.guards, &PseudoElement::ServoInlineAbsolute, &style);
let fragment = Fragment::from_opaque_node_and_style(node.opaque(),
PseudoElementType::Normal,
style,