mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
LibWeb: Add GridFormattingContext
This commit is contained in:
parent
e4541d83d3
commit
e4c5799026
5 changed files with 61 additions and 2 deletions
23
Userland/Libraries/LibWeb/Layout/GridFormattingContext.h
Normal file
23
Userland/Libraries/LibWeb/Layout/GridFormattingContext.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* 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();
|
||||
|
||||
virtual void run(Box const&, LayoutMode) override;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue