aboutsummaryrefslogtreecommitdiffstats
path: root/src/css_properties.cpp
diff options
context:
space:
mode:
authorYuri Kobets <yuri.kobets@gmail.com>2023-05-10 02:13:33 +0300
committerYuri Kobets <yuri.kobets@gmail.com>2023-05-10 02:13:33 +0300
commit3ba397469cc7410845f4306f52dc8dbaa23e8728 (patch)
treef5bae2270a2fcd6367a5de7d78faee737fe81d44 /src/css_properties.cpp
parent0a1b32aedba46562a67bde6b8c72ffc46a5aa362 (diff)
refactoring: rename have_parent to is_root
Diffstat (limited to 'src/css_properties.cpp')
-rw-r--r--src/css_properties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css_properties.cpp b/src/css_properties.cpp
index 30f557d7..1efccb60 100644
--- a/src/css_properties.cpp
+++ b/src/css_properties.cpp
@@ -73,7 +73,7 @@ void litehtml::css_properties::compute(const element* el, const document::ptr& d
{
m_display = display_block;
}
- } else if(!el->have_parent())
+ } else if(el->is_root())
{
// 4. Otherwise, if the element is the root element, 'display' is set according to the table below,
// except that it is undefined in CSS 2.2 whether a specified value of 'list-item' becomes a