
In some situations, a layout box should not participate in the standard layout process, for example when set to `position: absolute`.
23 lines
501 B
C++
23 lines
501 B
C++
/*
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Layout/FormattingContext.h>
|
|
|
|
namespace Web::Layout {
|
|
|
|
class FlexFormattingContext final : public FormattingContext {
|
|
public:
|
|
FlexFormattingContext(Box& containing_block, FormattingContext* parent);
|
|
~FlexFormattingContext();
|
|
|
|
virtual bool inhibits_floating() const override { return true; }
|
|
|
|
virtual void run(Box&, LayoutMode) override;
|
|
};
|
|
|
|
}
|