Disable stack execution on plugins
[claws.git] / src / plugins / litehtml_viewer / litehtml / el_image.h
blob2b73940815d691a90ad02135126c7ed9288c2b2a
1 #ifndef LH_EL_IMAGE_H
2 #define LH_EL_IMAGE_H
4 #include "html_tag.h"
6 namespace litehtml
9 class el_image : public html_tag
11 string m_src;
12 public:
13 el_image(const document::ptr& doc);
15 bool is_replaced() const override;
16 void parse_attributes() override;
17 void compute_styles(bool recursive = true) override;
18 void draw(uint_ptr hdc, int x, int y, const position *clip, const std::shared_ptr<render_item> &ri) override;
19 void get_content_size(size& sz, int max_width) override;
20 string dump_get_name() override;
22 std::shared_ptr<render_item> create_render_item(const std::shared_ptr<render_item>& parent_ri) override;
24 private:
25 // int calc_max_height(int image_height);
29 #endif // LH_EL_IMAGE_H