mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-09 18:15:19 +00:00
LibWeb: Grey out invisible nodes in the DOM inspector
This makes it easier to navigate large DOM trees where some nodes have display: none
This commit is contained in:
committed by
Andreas Kling
parent
a128d4931d
commit
69fc7009bf
@@ -126,6 +126,8 @@ GUI::Variant DOMTreeModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol
|
||||
return m_tree_view.palette().syntax_comment();
|
||||
if (type == "pseudo-element"sv)
|
||||
return m_tree_view.palette().syntax_type();
|
||||
if (!node.get("visible").to_bool(true))
|
||||
return m_tree_view.palette().syntax_comment();
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user