mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 21:10:30 +00:00
a4d51b3dc2
The "paintable" state in Layout::Box was actually not safe to access until after layout had been performed. As a first step towards making this harder to mess up accidentally, this patch moves painting information from Layout::Box to a new class: Painting::Box. Every layout can have a corresponding paint box, and it holds the final used metrics determined by layout. The paint box is created and populated by FormattingState::commit(). I've also added DOM::Node::paint_box() as a convenient way to access the paint box (if available) of a given DOM node. Going forward, I believe this will allow us to better separate data that belongs to layout vs painting, and also open up opportunities for naturally invalidating caches in the paint box (since it's reconstituted by every layout.) |
||
---|---|---|
.. | ||
AudioServer | ||
ChessEngine | ||
Clipboard | ||
ConfigServer | ||
CrashDaemon | ||
DHCPClient | ||
EchoServer | ||
FileOperation | ||
FileSystemAccessServer | ||
ImageDecoder | ||
InspectorServer | ||
KeyboardPreferenceLoader | ||
LaunchServer | ||
LoginServer | ||
LookupServer | ||
NotificationServer | ||
RequestServer | ||
SpiceAgent | ||
SQLServer | ||
SystemServer | ||
Taskbar | ||
TelnetServer | ||
WebContent | ||
WebServer | ||
WebSocket | ||
WindowServer | ||
CMakeLists.txt |