blob: f4573433e7c4447d70651d3b35b28f58690a3835 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Types.h>
#include <LibWeb/Forward.h>
#include <LibWeb/Layout/FormattingContext.h>
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);
};
}
|