mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
layout: Use the new style_for_anonymous_box()
function for the
anonymous text child of `<input>`.
This commit is contained in:
parent
2ffdfbd046
commit
a1bbc5d5fd
1 changed files with 3 additions and 2 deletions
|
@ -620,8 +620,9 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
|
||||||
|
|
||||||
let mut style = node.style(self.style_context());
|
let mut style = node.style(self.style_context());
|
||||||
if node_is_input_or_text_area {
|
if node_is_input_or_text_area {
|
||||||
style = self.style_context().stylist.
|
style = self.style_context()
|
||||||
precomputed_values_for_pseudo(&PseudoElement::ServoInputText, Some(&style)).unwrap();
|
.stylist
|
||||||
|
.style_for_anonymous_box(&PseudoElement::ServoInputText, &style)
|
||||||
}
|
}
|
||||||
|
|
||||||
self.create_fragments_for_node_text_content(&mut initial_fragments, node, &style)
|
self.create_fragments_for_node_text_content(&mut initial_fragments, node, &style)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue