mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Add FormattingContext::automatic_content_height()
This function should return the automatic height of the formatting context's root box. Until now, we've been relying on some magical handshakes between parent and child context, when negotiating the height of child context root boxes. This is a step towards something more reasonable.
This commit is contained in:
@@ -20,6 +20,11 @@ SVGFormattingContext::SVGFormattingContext(LayoutState& state, Box const& box, F
|
||||
|
||||
SVGFormattingContext::~SVGFormattingContext() = default;
|
||||
|
||||
float SVGFormattingContext::automatic_content_height() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SVGFormattingContext::run(Box const& box, LayoutMode)
|
||||
{
|
||||
auto& svg_svg_element = verify_cast<SVG::SVGSVGElement>(*box.dom_node());
|
||||
|
||||
Reference in New Issue
Block a user