diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-09 18:13:40 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-09 18:13:40 +0300 |
commit | 0e86b853be3b5f809ed1decbf636221c1144a386 (patch) | |
tree | 4ce84d9849646a559d5afece33fc6e64d39e4a50 /libs/litehtml/src/render_block.cpp | |
parent | 834cbb58d74215980165eab257538ba918a378cd (diff) |
litehtml update
Diffstat (limited to 'libs/litehtml/src/render_block.cpp')
-rw-r--r-- | libs/litehtml/src/render_block.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/libs/litehtml/src/render_block.cpp b/libs/litehtml/src/render_block.cpp index 49e6f8fa2d..7e2867f35e 100644 --- a/libs/litehtml/src/render_block.cpp +++ b/libs/litehtml/src/render_block.cpp @@ -52,15 +52,6 @@ int litehtml::render_item_block::place_float(const std::shared_ptr<render_item> std::shared_ptr<litehtml::render_item> litehtml::render_item_block::init() { - { - css_selector sel; - sel.parse(".inline_rating"); - if(src_el()->select(sel)) - { - int i = 0; - i++; - } - } std::shared_ptr<render_item> ret; // Initialize indexes for list items @@ -204,6 +195,14 @@ int litehtml::render_item_block::_render(int x, int y, const containing_block_co int ret_width = _render_content(x, y, second_pass, self_size, fmt_ctx); //***************************************** + if (src_el()->css().get_display() == display_list_item) + { + if(m_pos.height == 0) + { + m_pos.height = css().get_line_height(); + } + } + bool requires_rerender = false; // when true, the second pass for content rendering is required // Set block width @@ -341,7 +340,6 @@ int litehtml::render_item_block::_render(int x, int y, const containing_block_co m_pos.height = sz.height; } } - } return ret_width + content_offset_width(); |