aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorPu Xingyu <pu.stshine@gmail.com>2017-03-21 14:15:20 +0800
committerPu Xingyu <pu.stshine@gmail.com>2017-03-31 02:45:09 +0800
commit1677d479f61351ad22149eb577de6713a16b9908 (patch)
treef846d6acb8426aee969856d29b5c19752c25a887 /components/layout/construct.rs
parent836e554c3046d578858d3f4d9687e5c2e2892db2 (diff)
downloadservo-1677d479f61351ad22149eb577de6713a16b9908.tar.gz
servo-1677d479f61351ad22149eb577de6713a16b9908.zip
Use Servo-specific pseudo element for InlineAbsolute fragment
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 5533942e5a0..7dd4da8ada4 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -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,