/* * Copyright (c) 2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::Layout { class InlineFormattingContext final : public FormattingContext { public: InlineFormattingContext(Box& containing_block, FormattingContext* parent); ~InlineFormattingContext(); Box& containing_block() { return context_box(); } const Box& containing_block() const { return context_box(); } virtual void run(Box&, LayoutMode) override; float available_width_at_line(size_t line_index) const; void dimension_box_on_line(Box&, LayoutMode); }; }