diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-02 19:32:26 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-02 22:30:06 +0100 |
commit | 68c8d23e39b697ead4488f2207952c2d8fdf78d6 (patch) | |
tree | 0b2a28050e68f7eff2787fadb9e2f655a9ce8aa6 /Userland/Applications/Browser | |
parent | 50888466065ed3e24a93de39a74c849781707140 (diff) | |
download | serenity-68c8d23e39b697ead4488f2207952c2d8fdf78d6.zip |
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.
Diffstat (limited to 'Userland/Applications/Browser')
-rw-r--r-- | Userland/Applications/Browser/InspectorWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |