mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 01:08:11 +00:00
LibHTML: Let's not have anonymous blocks inherit their parent's style
This was introducing a bunch of unwanted margins.
This commit is contained in:
parent
ee567cdc3d
commit
9858e2632c
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ LayoutBlock::~LayoutBlock()
|
||||||
LayoutNode& LayoutBlock::inline_wrapper()
|
LayoutNode& LayoutBlock::inline_wrapper()
|
||||||
{
|
{
|
||||||
if (!last_child() || !last_child()->is_block() || last_child()->node() != nullptr) {
|
if (!last_child() || !last_child()->is_block() || last_child()->node() != nullptr) {
|
||||||
append_child(adopt(*new LayoutBlock(nullptr, style())));
|
append_child(adopt(*new LayoutBlock(nullptr, StyleProperties::create())));
|
||||||
}
|
}
|
||||||
return *last_child();
|
return *last_child();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue