1 #ifndef LITEHTML_RENDER_IMAGE_H
2 #define LITEHTML_RENDER_IMAGE_H
4 #include "render_item.h"
8 class render_item_image
: public render_item
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
;
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