mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
fix text-decoration property in layout
This commit is contained in:
parent
d11e431887
commit
b0380ae96a
6 changed files with 97 additions and 34 deletions
|
@ -643,8 +643,9 @@ impl Flow for InlineFlow {
|
|||
for kid in self.base.child_iter() {
|
||||
let child_base = flow::mut_base(*kid);
|
||||
child_base.position.size.width = self.base.position.size.width;
|
||||
child_base.flags.set_inorder(self.base.flags.inorder());
|
||||
child_base.flags.propagate_text_alignment_from_parent(self.base.flags)
|
||||
child_base.flags_info.flags.set_inorder(self.base.flags_info.flags.inorder());
|
||||
// FIXME(ksh8281) avoid copy
|
||||
child_base.flags_info.propagate_text_alignment_from_parent(self.base.flags_info)
|
||||
}
|
||||
// There are no child contexts, so stop here.
|
||||
|
||||
|
@ -685,7 +686,7 @@ impl Flow for InlineFlow {
|
|||
let mut line_height_offset = Au::new(0);
|
||||
|
||||
// All lines use text alignment of the flow.
|
||||
let text_align = self.base.flags.text_align();
|
||||
let text_align = self.base.flags_info.flags.text_align();
|
||||
|
||||
// Now, go through each line and lay out the boxes inside.
|
||||
for line in self.lines.mut_iter() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue