mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Don't (anonymously) wrap table boxes that are already wrapped
Instead just update the existing wrapper with computed values from the table box, to insure that upside-down "inheritance" works as expected. This allows table fixup to run on partially updated layout trees without adding a new layer of unnecessary wrappers every time.
This commit is contained in:
committed by
Andreas Kling
parent
e8b5667a9e
commit
b41a490e40
@@ -1109,6 +1109,11 @@ GC::Ref<NodeWithStyle> NodeWithStyle::create_anonymous_wrapper() const
|
||||
return *wrapper;
|
||||
}
|
||||
|
||||
void NodeWithStyle::set_computed_values(NonnullOwnPtr<CSS::ComputedValues> computed_values)
|
||||
{
|
||||
m_computed_values = move(computed_values);
|
||||
}
|
||||
|
||||
void NodeWithStyle::reset_table_box_computed_values_used_by_wrapper_to_init_values()
|
||||
{
|
||||
VERIFY(this->display().is_table_inside());
|
||||
|
||||
Reference in New Issue
Block a user