mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
LibWeb+Browser: Show DOM comments with syntax_comment color in inspector
This required a hack since models can't return a color role directly from data(). I've added a FIXME about it.
This commit is contained in:
parent
5088846606
commit
68c8d23e39
3 changed files with 19 additions and 7 deletions
|
@ -109,7 +109,7 @@ void InspectorWidget::set_dom_json(String json)
|
|||
return;
|
||||
|
||||
m_dom_json = json;
|
||||
m_dom_tree_view->set_model(Web::DOMTreeModel::create(m_dom_json->view()));
|
||||
m_dom_tree_view->set_model(Web::DOMTreeModel::create(m_dom_json->view(), *m_dom_tree_view));
|
||||
|
||||
if (m_pending_inspect_node_id.has_value()) {
|
||||
i32 node_id = m_pending_inspect_node_id.value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue