mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 15:38:12 +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:
parent
a128d4931d
commit
69fc7009bf
2 changed files with 4 additions and 0 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue