add support for Ayatana indicator to Notification plugin
[claws.git] / src / plugins / litehtml_viewer / litehtml / render_image.h
blobe85f487caf942fd4bbeae699f36cc84b3cad4e23
1 #ifndef LITEHTML_RENDER_IMAGE_H
2 #define LITEHTML_RENDER_IMAGE_H
4 #include "render_item.h"
6 namespace litehtml
8 class render_item_image : public render_item
10 protected:
11 int calc_max_height(int image_height, int containing_block_height);
12 int _render(int x, int y, const containing_block_context &containing_block_size, formatting_context* fmt_ctx, bool second_pass) override;
14 public:
15 explicit render_item_image(std::shared_ptr<element> src_el) : render_item(std::move(src_el))
18 std::shared_ptr<render_item> clone() override
20 return std::make_shared<render_item_image>(src_el());
25 #endif //LITEHTML_RENDER_IMAGE_H