Przeglądaj źródła

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

Timothy Flynn 11 miesięcy temu
rodzic
commit
440f40fde6
1 zmienionych plików z 9 dodań i 0 usunięć
  1. 9 0
      Base/res/ladybird/inspector.js

+ 9 - 0
Base/res/ladybird/inspector.js

@@ -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;