1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

Browser: Reload the DOM Inspector's JSON data when loading a new page

Of course, there are other reasons the DOM might change, but one thing
at a time. :^)
This commit is contained in:
Sam Atkins 2021-09-01 12:50:47 +01:00 committed by Andreas Kling
parent 73c95bcd5f
commit 724f45c784
3 changed files with 17 additions and 1 deletions

View file

@ -117,6 +117,13 @@ void InspectorWidget::set_dom_json(String json)
}
}
void InspectorWidget::clear_dom_json()
{
m_dom_json.clear();
m_dom_tree_view->set_model(nullptr);
clear_style_json();
}
void InspectorWidget::set_dom_node_properties_json(i32 node_id, String specified_values_json, String computed_values_json)
{
if (node_id != m_inspected_node_id) {