mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use the correct writing mode for Floats fields
Fixes #6113 (assertion failures caused by floats in mixed-direction pages).
This commit is contained in:
parent
913c5677ab
commit
ec5c333347
2 changed files with 16 additions and 7 deletions
|
@ -1455,7 +1455,8 @@ impl Flow for InlineFlow {
|
|||
};
|
||||
|
||||
self.base.floats = scanner.floats.clone();
|
||||
self.base.floats.translate(LogicalSize::new(self.base.writing_mode,
|
||||
let writing_mode = self.base.floats.writing_mode;
|
||||
self.base.floats.translate(LogicalSize::new(writing_mode,
|
||||
Au(0),
|
||||
-self.base.position.size.block));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue