mirror of
https://github.com/servo/servo.git
synced 2025-06-11 01:50:10 +00:00
layout: Cache content block size contributions (#33964)
This is the first part of caching intermediary layout during flexbox layout. A later change will try to reuse these layouts, when possible, for actual item layout and re-layout due to stretching. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
7015e0fb5f
commit
01c9ecfe01
3 changed files with 57 additions and 10 deletions
|
@ -181,6 +181,7 @@ where
|
|||
independent_formatting_context: IndependentFormattingContext::NonReplaced(
|
||||
non_replaced,
|
||||
),
|
||||
cached_layout: Default::default(),
|
||||
})))
|
||||
},
|
||||
FlexLevelJob::Element {
|
||||
|
@ -212,6 +213,7 @@ where
|
|||
contents,
|
||||
self.text_decoration_line,
|
||||
),
|
||||
cached_layout: Default::default(),
|
||||
}))
|
||||
};
|
||||
box_slot.set(LayoutBox::FlexLevel(box_.clone()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue