aboutsummaryrefslogtreecommitdiffstats
path: root/include/litehtml/render_item.h
diff options
context:
space:
mode:
authorYuri Kobets <[email protected]>2025-06-10 01:46:11 +0300
committerYuri Kobets <[email protected]>2025-06-10 01:46:11 +0300
commit6f36dd247277a98a3eaa82c65efc112044c19898 (patch)
treeb8e5a9d76e2ca9d8cbb2c3111260335c97596120 /include/litehtml/render_item.h
parentbfcca39e24c3f24f023dd609daace7d4d1879452 (diff)
Add const qualifier to calc_document_size methodupstream/overflow_scroll
Diffstat (limited to 'include/litehtml/render_item.h')
-rw-r--r--include/litehtml/render_item.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/litehtml/render_item.h b/include/litehtml/render_item.h
index 0a52b143..21c943b4 100644
--- a/include/litehtml/render_item.h
+++ b/include/litehtml/render_item.h
@@ -412,7 +412,7 @@ namespace litehtml
std::tuple<int, int> element_static_offset(const std::shared_ptr<litehtml::render_item> &el);
void add_positioned(const std::shared_ptr<litehtml::render_item> &el);
void get_redraw_box(litehtml::position& pos, int x = 0, int y = 0);
- void calc_document_size( litehtml::size& sz, int x = 0, int y = 0 );
+ void calc_document_size( litehtml::size& sz, int x = 0, int y = 0 ) const;
virtual void get_inline_boxes( position::vector& /*boxes*/ ) const {};
virtual void set_inline_boxes( position::vector& /*boxes*/ ) {};
virtual void add_inline_box( const position& /*box*/ ) {};