diff --git a/Tests/LibWeb/Layout/expected/css-namespace-tag-name-selector.txt b/Tests/LibWeb/Layout/expected/css-namespace-tag-name-selector.txt index fdc2ae6842..1665c2df26 100644 --- a/Tests/LibWeb/Layout/expected/css-namespace-tag-name-selector.txt +++ b/Tests/LibWeb/Layout/expected/css-namespace-tag-name-selector.txt @@ -5,14 +5,14 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline frag 0 from SVGSVGBox start: 0, length: 0, rect: [9,9 300x150] baseline: 152 frag 1 from TextNode start: 0, length: 1, rect: [310,146 8x17] baseline: 13.296875 " " - frag 2 from Box start: 0, length: 0, rect: [319,51 0x108] baseline: 110 + frag 2 from BlockContainer start: 0, length: 0, rect: [319,51 0x108] baseline: 110 SVGSVGBox at (9,9) content-size 300x150 [SVG] children: inline InlineNode SVGTextBox at (29,25.015625) content-size 193.59375x67.578125 children: inline TextNode <#text> TextNode <#text> - Box at (319,51) content-size 0x108 children: not-inline - Box at (8,8) content-size 100x100 children: inline + BlockContainer at (319,51) content-size 0x108 children: not-inline + BlockContainer at (319,51) content-size 100x100 children: inline TextNode <#text> TextNode <#text> BlockContainer
at (9,164) content-size 782x44 children: inline @@ -29,8 +29,8 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer(anonymous)) [8,8 784x155] SVGSVGPaintable (SVGSVGBox) [8,8 302x152] TextPaintable (TextNode<#text>) - PaintableBox (Box) [318,50 2x110] overflow: [8,8 100x100] - PaintableBox (Box) [8,8 100x100] + PaintableWithLines (BlockContainer) [318,50 2x110] overflow: [319,51 100x100] + PaintableWithLines (BlockContainer) [319,51 100x100] PaintableWithLines (BlockContainer
) [8,163 784x46] InlinePaintable (InlineNode) TextPaintable (TextNode<#text>) diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 35c9302409..6995481d18 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -417,7 +417,7 @@ JS::GCPtr Element::create_layout_node_for_display_type(DOM::Docume // MathML elements with a computed display value equal to block math or inline math control box generation // and layout according to their tag name, as described in the relevant sections. // FIXME: Figure out what kind of node we should make for them. For now, we'll stick with a generic Box. - return document.heap().allocate_without_realm(document, element, move(style)); + return document.heap().allocate_without_realm(document, element, move(style)); } if (display.is_inline_outside()) {