support image/x-eps format via pdf_viewer
[claws.git] / src / plugins / litehtml_viewer / litehtml / render_block_context.h
blobc69389832c5c3d15cf8504daebfcf48a2c1110fb
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());
26 int get_first_baseline() override;
27 int get_last_baseline() override;
31 #endif //LITEHTML_RENDER_BLOCK_CONTEXT_H