1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

LibWeb: Detach the paint tree in Document::tear_down_the_layout_tree()

Otherwise, someone may try to paint the paint tree after the layout tree
has been torn down. This could in theory be possible in the future, but
until we've completely severed the paint tree's dependency on the layout
tree, this is not safe as the layout tree is no longer in a valid state.
This commit is contained in:
Andreas Kling 2023-08-28 18:40:20 +02:00
parent edec5a157c
commit b3a885755c

View file

@ -810,6 +810,8 @@ void Document::tear_down_layout_tree()
}
m_layout_root = nullptr;
m_paintable = nullptr;
}
Color Document::background_color() const