1 #ifndef LITEHTML_RENDER_BLOCK_CONTEXT_H
2 #define LITEHTML_RENDER_BLOCK_CONTEXT_H
4 #include "render_block.h"
9 * In a block formatting context, boxes are laid out one after the other, vertically, beginning at the top of a
11 * https://www.w3.org/TR/CSS22/visuren.html#block-formatting
13 class render_item_block_context
: public render_item_block
16 int _render_content(int x
, int y
, bool second_pass
, const containing_block_context
&self_size
, formatting_context
* fmt_ctx
) override
;
19 explicit render_item_block_context(std::shared_ptr
<element
> src_el
) : render_item_block(std::move(src_el
))
22 std::shared_ptr
<render_item
> clone() override
24 return std::make_shared
<render_item_block_context
>(src_el());
29 #endif //LITEHTML_RENDER_BLOCK_CONTEXT_H