From f9734e2b3900781901bb5f268137bd9adbfc33ef Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 26 Jun 2024 23:37:02 +0200 Subject: layout: inline fixes & improvements * fix text-align breaking down in the presence of floats * improve (and simplify) background color area painting This greatly simplifies inline layout by removing the additional text-align atom movement code and replacing it with a full re-layout when needed. That re-layout only occurs in (rare) cases where the text is likely to be relatively short anyway, so it's probably a win in any remotely realistic layout. This has also made it possible to at last merge the last three passes (horizontal/vertical alignment and background painting) and drop that weird synchronized tree + vector traversal. --- test/layout/float-text-align-right.color.expected | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 test/layout/float-text-align-right.color.expected (limited to 'test/layout/float-text-align-right.color.expected') diff --git a/test/layout/float-text-align-right.color.expected b/test/layout/float-text-align-right.color.expected new file mode 100644 index 00000000..bcb22cf8 --- /dev/null +++ b/test/layout/float-text-align-right.color.expected @@ -0,0 +1,2 @@ +float float float testfloat + -- cgit 1.4.1-2-gfad0