From a1bbc5d5fd875938ea2c6253dc2218fa20b1bb9d Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 24 Oct 2016 18:13:05 -0700 Subject: [PATCH] layout: Use the new `style_for_anonymous_box()` function for the anonymous text child of ``. --- components/layout/construct.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/layout/construct.rs b/components/layout/construct.rs index deb9cc7c0af..f59c76d2885 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -620,8 +620,9 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode> let mut style = node.style(self.style_context()); if node_is_input_or_text_area { - style = self.style_context().stylist. - precomputed_values_for_pseudo(&PseudoElement::ServoInputText, Some(&style)).unwrap(); + style = self.style_context() + .stylist + .style_for_anonymous_box(&PseudoElement::ServoInputText, &style) } self.create_fragments_for_node_text_content(&mut initial_fragments, node, &style)