summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Forward.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-02-20 15:51:24 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-21 18:35:12 +0100
commitc9700e100e1cfe463b837b7a1337a5a7b7df63d9 (patch)
treebe46a34022d858f05089a68ed01057737db6d10b /Userland/Libraries/LibWeb/Forward.h
parent561612f2192adf4c0cecfe7a19df5804fc1960ff (diff)
downloadserenity-c9700e100e1cfe463b837b7a1337a5a7b7df63d9.zip
LibWeb: Start making our layout system "transactional"
This patch adds a map of Layout::Node to FormattingState::NodeState. Instead of updating layout nodes incrementally as layout progresses through the formatting contexts, all updates are now written to the corresponding NodeState instead. At the end of layout, FormattingState::commit() is called, which transfers all the values from the NodeState objects to the Node. This will soon allow us to perform completely non-destructive layouts which don't affect the tree. Note that there are many imperfections here, and still many places where we assign to the NodeState, but later read directly from the Node instead. I'm just committing at this stage to make subsequent diffs easier to understand.
Diffstat (limited to 'Userland/Libraries/LibWeb/Forward.h')
0 files changed, 0 insertions, 0 deletions