1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 22:21:00 +00:00
serenity/Userland
Andreas Kling 561612f219 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. :^)
2022-02-21 18:35:12 +01:00
..
Applets Userland/Applets: Use default constructors/destructors 2022-02-13 21:27:17 +00:00
Applications Userland: Ask first for unsaved changes after clicking an "Open" action 2022-02-21 18:30:32 +01:00
Demos Demos: Use default constructors/destructors 2022-02-15 23:00:03 +02:00
DevTools Userland: Ask first for unsaved changes after clicking an "Open" action 2022-02-21 18:30:32 +01:00
DynamicLoader DynamicLoader+LibC+LibTimeZone: Include LibTimeZone sources in LibC 2022-01-23 12:48:26 +00:00
Games Games: Use default constructors/destructors 2022-02-16 22:08:55 +00:00
Libraries LibWeb: Add Layout::FormattingState 2022-02-21 18:35:12 +01:00
Services WindowServer: Add IPC call to remove a menu's item 2022-02-21 16:31:56 +01:00
Shell Shell: Use an opaque default color for BarewordLiteral 2022-02-19 11:33:28 +01:00
Utilities ls: Add option -1 which lists one file per line 2022-02-19 18:18:13 -08:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00