mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 12:04:58 +00:00

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.
23 lines
529 B
C++
23 lines
529 B
C++
/*
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Forward.h>
|
|
#include <LibWeb/Layout/FormattingContext.h>
|
|
|
|
namespace Web::Layout {
|
|
|
|
class SVGFormattingContext : public FormattingContext {
|
|
public:
|
|
explicit SVGFormattingContext(LayoutState&, Box const&, FormattingContext* parent);
|
|
~SVGFormattingContext();
|
|
|
|
virtual void run(Box const&, LayoutMode) override;
|
|
virtual float automatic_content_height() const override;
|
|
};
|
|
|
|
}
|