mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibWeb: Display pseudo-elements in the DOM inspector
This patch only makes them appear in the tree - they are not yet inspectable themselves.
This commit is contained in:
parent
1c18bb13a2
commit
6de2b62906
Notes:
sideshowbarker
2024-07-17 17:37:39 +09:00
Author: https://github.com/AtkinsSJ
Commit: 6de2b62906
Pull-request: https://github.com/SerenityOS/serenity/pull/12873
5 changed files with 57 additions and 3 deletions
|
@ -126,6 +126,8 @@ GUI::Variant DOMTreeModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol
|
|||
// Then we won't need to have a GUI::TreeView& member anymore.
|
||||
if (type == "comment"sv)
|
||||
return m_tree_view.palette().syntax_comment();
|
||||
if (type == "pseudo-element"sv)
|
||||
return m_tree_view.palette().syntax_type();
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue