2022-08-23 10:36:27 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, Martin Falisse <mfalisse@outlook.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/Layout/BlockFormattingContext.h>
|
|
|
|
|
#include <LibWeb/Layout/Box.h>
|
|
|
|
|
#include <LibWeb/Layout/FormattingContext.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::Layout {
|
|
|
|
|
|
|
|
|
|
class GridFormattingContext final : public BlockFormattingContext {
|
|
|
|
|
public:
|
|
|
|
|
explicit GridFormattingContext(LayoutState&, BlockContainer const&, FormattingContext* parent);
|
|
|
|
|
~GridFormattingContext();
|
|
|
|
|
|
2022-09-25 19:12:09 +02:00
|
|
|
virtual void run(Box const&, LayoutMode, AvailableSpace const& available_width, AvailableSpace const& available_height) override;
|
2022-09-24 13:39:43 +02:00
|
|
|
virtual float automatic_content_height() const override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
float m_automatic_content_height { 0 };
|
2022-08-23 10:36:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|