LibWeb: Rename LayoutNode::is_root() => is_initial_containing_block()

Let's use spec language for this. :^)
This commit is contained in:
Andreas Kling 2020-12-04 16:27:07 +01:00
commit 169a9150cb
Notes: sideshowbarker 2024-07-19 01:03:41 +09:00
6 changed files with 8 additions and 8 deletions

View file

@ -119,7 +119,7 @@ GUI::Variant LayoutTreeModel::data(const GUI::ModelIndex& index, GUI::ModelRole
{
auto& node = *static_cast<Layout::Node*>(index.internal_data());
if (role == GUI::ModelRole::Icon) {
if (node.is_root())
if (node.is_initial_containing_block())
return m_document_icon;
if (node.is_text())
return m_text_icon;