mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:57:44 +00:00
LibWeb: Hang StackingContext off of the paint boxes
Stacking contexts have nothing to do with layout and everything with painting, so let's keep them in Painting::Box.
This commit is contained in:
parent
cc8e429126
commit
9f5cbcaad3
10 changed files with 39 additions and 38 deletions
|
@ -570,7 +570,6 @@ void Document::update_layout()
|
|||
|
||||
Layout::FormattingState formatting_state;
|
||||
Layout::BlockFormattingContext root_formatting_context(formatting_state, *m_layout_root, nullptr);
|
||||
m_layout_root->build_stacking_context_tree();
|
||||
|
||||
auto& icb = static_cast<Layout::InitialContainingBlock&>(*m_layout_root);
|
||||
auto& icb_state = formatting_state.get_mutable(icb);
|
||||
|
@ -583,6 +582,8 @@ void Document::update_layout()
|
|||
root_formatting_context.run(*m_layout_root, Layout::LayoutMode::Default);
|
||||
formatting_state.commit();
|
||||
|
||||
m_layout_root->build_stacking_context_tree();
|
||||
|
||||
browsing_context()->set_needs_display();
|
||||
|
||||
if (browsing_context()->is_top_level()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue