LibWebView: Clear the style and font tabs when the Inspector is reset

This commit is contained in:
Timothy Flynn 2024-09-06 11:08:45 -04:00 committed by Andreas Kling
parent 5233f9c8e6
commit 440f40fde6
Notes: github-actions[bot] 2024-09-07 09:12:03 +00:00

View file

@ -103,6 +103,15 @@ inspector.reset = () => {
let accessibilityTree = document.getElementById("accessibility-tree");
accessibilityTree.innerHTML = "";
let styleSheetPicker = document.getElementById("style-sheet-picker");
styleSheetPicker.replaceChildren();
let styleSheetSource = document.getElementById("style-sheet-source");
styleSheetSource.innerHTML = "";
let fontsList = document.getElementById("fonts-list");
fontsList.innerHTML = "";
selectedDOMNode = null;
pendingEditDOMNode = null;