Update LiteHTML sources
[claws.git] / src / plugins / litehtml_viewer / litehtml / render_block_context.h
blob3b5192261ff91ea3ccc9339d8f65599abcdd1f8a
1 #ifndef LITEHTML_RENDER_BLOCK_CONTEXT_H
2 #define LITEHTML_RENDER_BLOCK_CONTEXT_H
4 #include "render_block.h"
6 namespace litehtml
8 /**
9 * In a block formatting context, boxes are laid out one after the other, vertically, beginning at the top of a
10 * containing block.
11 * https://www.w3.org/TR/CSS22/visuren.html#block-formatting
13 class render_item_block_context : public render_item_block
15 protected:
16 int _render_content(int x, int y, bool second_pass, const containing_block_context &self_size, formatting_context* fmt_ctx) override;
18 public:
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