mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
Browser: Reset the DOM Inspector's state when re-opening it
This resets the DOM Inspector to a default state when re-opening it, instead of it displaying the previous selection and properties, which may be outdated. This is closer to how Chrome and Firefox behave. Eventually, it probably makes sense to copy their behavior of selecting the `<body>` element by default.
This commit is contained in:
parent
97379ace25
commit
73c95bcd5f
3 changed files with 28 additions and 4 deletions
|
@ -22,12 +22,14 @@ public:
|
|||
void set_dom_node_properties_json(i32 node_id, String specified_values_json, String computed_values_json);
|
||||
|
||||
void set_inspected_node(i32 node_id);
|
||||
void select_default_node();
|
||||
|
||||
private:
|
||||
InspectorWidget();
|
||||
|
||||
void set_inspected_node(GUI::ModelIndex);
|
||||
void load_style_json(String specified_values_json, String computed_values_json);
|
||||
void clear_style_json();
|
||||
|
||||
RefPtr<Web::OutOfProcessWebView> m_web_view;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue