From 68c8d23e39b697ead4488f2207952c2d8fdf78d6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 2 Nov 2021 19:32:26 +0100 Subject: 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. --- Userland/Applications/Browser/InspectorWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Applications/Browser') diff --git a/Userland/Applications/Browser/InspectorWidget.cpp b/Userland/Applications/Browser/InspectorWidget.cpp index 7728e96626..55c9c7e538 100644 --- a/Userland/Applications/Browser/InspectorWidget.cpp +++ b/Userland/Applications/Browser/InspectorWidget.cpp @@ -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(); -- cgit v1.2.3