From 8f3c96035f22a16459ad7c8996c280a015f0d2f5 Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 12 Feb 2025 21:15:38 +0100 Subject: layout: separate out tree construction logic For now, the skeleton remains in layout. Eventually it should be lazily constructed during the actual layout pass (thereby making layout "single-pass" (sometimes :p)) The end goal is to do it all in styledNode.children, so that caching can be as simple as "next box = find next matching cached box ?? make new". This does mean that the internal structure of cached boxes will always have to be reconstructed, but I don't see a better way. (I suppose it still remains possible to optimize out the unnecessary layout pass when only a repaint is needed (e.g. color change) by modifying computed values in-place.) --- test/layout/pseudo-element-display-table-empty-content.expected | 1 + test/layout/pseudo-element-display-table-empty-content.html | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 test/layout/pseudo-element-display-table-empty-content.expected create mode 100644 test/layout/pseudo-element-display-table-empty-content.html (limited to 'test') diff --git a/test/layout/pseudo-element-display-table-empty-content.expected b/test/layout/pseudo-element-display-table-empty-content.expected new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/layout/pseudo-element-display-table-empty-content.expected @@ -0,0 +1 @@ + diff --git a/test/layout/pseudo-element-display-table-empty-content.html b/test/layout/pseudo-element-display-table-empty-content.html new file mode 100644 index 00000000..0d217c36 --- /dev/null +++ b/test/layout/pseudo-element-display-table-empty-content.html @@ -0,0 +1,3 @@ + + +
-- cgit 1.4.1-2-gfad0