mirror of
https://github.com/servo/servo.git
synced 2025-07-16 03:43:38 +01:00
layout: Add incremental box tree construction for table caption (#37849)
This change extends incremental box tree updates to table captions. In addition, calls to `LayoutBox::invalidate_cached_fragment()` are moved to the damage calculation traversal. Testing: This should not change observable behavior and is thus covered by existing WPT tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
00472dec8e
commit
82f7f761d9
4 changed files with 37 additions and 14 deletions
|
@ -180,6 +180,10 @@ impl BoxSlot<'_> {
|
|||
*slot.borrow_mut() = Some(box_);
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn take_layout_box(&self) -> Option<LayoutBox> {
|
||||
self.slot.as_ref().and_then(|slot| slot.borrow_mut().take())
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for BoxSlot<'_> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue