layout: Use the new style_for_anonymous_box() function for the

anonymous text child of `<input>`.
This commit is contained in:
Patrick Walton 2016-10-24 18:13:05 -07:00
parent 2ffdfbd046
commit a1bbc5d5fd

View file

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