diff options
author | Pu Xingyu <pu.stshine@gmail.com> | 2017-03-21 01:39:54 +0800 |
---|---|---|
committer | Pu Xingyu <pu.stshine@gmail.com> | 2017-03-31 02:45:09 +0800 |
commit | 836e554c3046d578858d3f4d9687e5c2e2892db2 (patch) | |
tree | c3b66e791fe4b6b2b786e3ee256f8ce3ada0c383 /components/layout/construct.rs | |
parent | 54e2b7b2d5eaa2b59c8d922de2344677871370a1 (diff) | |
download | servo-836e554c3046d578858d3f4d9687e5c2e2892db2.tar.gz servo-836e554c3046d578858d3f4d9687e5c2e2892db2.zip |
Use Servo-specific pseudo element for InlineBlock fragment
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r-- | components/layout/construct.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index 00cd46a079a..5533942e5a0 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -950,13 +950,15 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode> _ => unreachable!() }; - let mut modified_style = node.style(self.style_context()); - properties::modify_style_for_outer_inline_block_fragment(&mut modified_style); + let context = self.style_context(); + let style = node.style(context); + let style = context.stylist.style_for_anonymous_box( + &context.guards, &PseudoElement::ServoInlineBlockWrapper, &style); let fragment_info = SpecificFragmentInfo::InlineBlock(InlineBlockFragmentInfo::new( block_flow)); let fragment = Fragment::from_opaque_node_and_style(node.opaque(), node.get_pseudo_element_type().strip(), - modified_style, + style, node.selected_style(), node.restyle_damage(), fragment_info); |