aboutsummaryrefslogtreecommitdiffstats
path: root/src/html_tag.cpp
diff options
context:
space:
mode:
authorYuri Kobets <yuri.kobets@gmail.com>2024-01-31 03:48:44 +0300
committerGitHub <noreply@github.com>2024-01-31 03:48:44 +0300
commit6ca1ab0419e770e6d35a1ef690238773a1dafcee (patch)
tree16df635edd594dc1d1b9d0044993e2ae4d0e0200 /src/html_tag.cpp
parent8c320007878795fe629de7fe1eaef9328ac9c719 (diff)
parentd85ebec101e77825e5708e58df0e2508ec4fd389 (diff)
Merge pull request #285 from litehtml/flex_layoutHEADv0.9dev
Flex layout
Diffstat (limited to 'src/html_tag.cpp')
-rw-r--r--src/html_tag.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/html_tag.cpp b/src/html_tag.cpp
index ab2c45e9..1814e9c3 100644
--- a/src/html_tag.cpp
+++ b/src/html_tag.cpp
@@ -367,6 +367,11 @@ int litehtml::html_tag::get_enum_property(string_id name, bool inherited, int de
return get_property_impl<int, prop_type_enum_item, &property_value::m_enum_item>(name, inherited, default_value, css_properties_member_offset);
}
+int litehtml::html_tag::get_int_property(string_id name, bool inherited, int default_value, uint_ptr css_properties_member_offset) const
+{
+ return get_property_impl<int, prop_type_enum_item, &property_value::m_enum_item>(name, inherited, default_value, css_properties_member_offset);
+}
+
litehtml::css_length litehtml::html_tag::get_length_property(string_id name, bool inherited, css_length default_value, uint_ptr css_properties_member_offset) const
{
return get_property_impl<css_length, prop_type_length, &property_value::m_length>(name, inherited, default_value, css_properties_member_offset);