From a8f3891507cf21320f78f2d4a97731ad4462c676 Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 27 May 2024 18:52:49 +0200 Subject: layout: remove BlockBoxBuidler Instead of allocating a separate object for each box, just re-use a single BlockBox on re-layouts. This means that now the (block-level) tree is built in its final form in the first pass. (Inline boxes remain the same as before for now.) --- test/layout/float-next-to-caption.expected | 2 ++ test/layout/float-next-to-caption.html | 4 ++++ test/layout/table-nested-simple.expected | 1 + test/layout/table-nested-simple.html | 2 ++ 4 files changed, 9 insertions(+) create mode 100644 test/layout/float-next-to-caption.expected create mode 100644 test/layout/float-next-to-caption.html create mode 100644 test/layout/table-nested-simple.expected create mode 100644 test/layout/table-nested-simple.html (limited to 'test/layout') diff --git a/test/layout/float-next-to-caption.expected b/test/layout/float-next-to-caption.expected new file mode 100644 index 00000000..3021c733 --- /dev/null +++ b/test/layout/float-next-to-caption.expected @@ -0,0 +1,2 @@ +test test 1 +2 diff --git a/test/layout/float-next-to-caption.html b/test/layout/float-next-to-caption.html new file mode 100644 index 00000000..68cf13bd --- /dev/null +++ b/test/layout/float-next-to-caption.html @@ -0,0 +1,4 @@ + +
test 1
+ + diff --git a/test/layout/table-nested-simple.expected b/test/layout/table-nested-simple.expected new file mode 100644 index 00000000..3f4d41a4 --- /dev/null +++ b/test/layout/table-nested-simple.expected @@ -0,0 +1 @@ + Test diff --git a/test/layout/table-nested-simple.html b/test/layout/table-nested-simple.html new file mode 100644 index 00000000..ceca7d27 --- /dev/null +++ b/test/layout/table-nested-simple.html @@ -0,0 +1,2 @@ +
test 2
+
Test -- cgit 1.4.1-2-gfad0