diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-19 20:13:47 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-21 18:35:12 +0100 |
commit | 561612f2192adf4c0cecfe7a19df5804fc1960ff (patch) | |
tree | 24a33bf7c36d5548dbdc030d0b1d05365014300e /Userland/Libraries/LibGUI/GitCommitLexer.h | |
parent | 9c05639d35d51f17397751ce3c5b4e7999a93ba4 (diff) | |
download | serenity-561612f2192adf4c0cecfe7a19df5804fc1960ff.zip |
LibWeb: Add Layout::FormattingState
The purpose of this new object will be to keep track of various states
during an ongoing layout.
Until now, we've been updating layout tree nodes as we go during layout,
which adds an invisible layer of implicit serialization to the whole
layout system.
My idea with FormattingState is that running layout will produce a
result entirely contained within the FormattingState object. At the end
of layout, it can then be applied to the layout tree, or simply queried
for some metrics we were trying to determine.
When doing subtree layouts to determine intrinsic sizes, we will
eventually be able to clone the current FormattingState, and run the
subtree layout in isolation, opening up opportunities for parallelism.
This first patch doesn't go very far though, it merely adds the object
as a skeleton class, and makes sure the root BFC has one. :^)
Diffstat (limited to 'Userland/Libraries/LibGUI/GitCommitLexer.h')
0 files changed, 0 insertions, 0 deletions