mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Use cached UsedValues pointer in IFC and its helper classes
This avoids expensive LayoutState lookups when we already have the pointer sitting around anyway.
This commit is contained in:
parent
43ef3dc0ab
commit
1cea4e6407
Notes:
sideshowbarker
2024-07-16 21:39:23 +09:00
Author: https://github.com/awesomekling
Commit: 1cea4e6407
Pull-request: https://github.com/SerenityOS/serenity/pull/23602
7 changed files with 48 additions and 45 deletions
|
@ -472,7 +472,7 @@ void BlockFormattingContext::layout_inline_children(BlockContainer const& block_
|
|||
|
||||
auto& block_container_state = m_state.get_mutable(block_container);
|
||||
|
||||
InlineFormattingContext context(m_state, block_container, *this);
|
||||
InlineFormattingContext context(m_state, block_container, block_container_state, *this);
|
||||
context.run(
|
||||
block_container,
|
||||
layout_mode,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue