mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-05 09:52:54 +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:
parent
e8b5667a9e
commit
b41a490e40
Notes:
github-actions[bot]
2025-01-18 20:02:13 +00:00
Author: https://github.com/awesomekling
Commit: b41a490e40
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3274
3 changed files with 25 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue