mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:07:45 +00:00
Browser+LibWeb+WebContent: Add variables display to Inspector
This allows us to see which custom properties apply to a given element, which previously wasn't shown.
This commit is contained in:
parent
53df13fed7
commit
54bbb97ac6
12 changed files with 65 additions and 24 deletions
|
@ -20,7 +20,7 @@ public:
|
|||
void set_web_view(NonnullRefPtr<Web::OutOfProcessWebView> web_view) { m_web_view = web_view; }
|
||||
void set_dom_json(String);
|
||||
void clear_dom_json();
|
||||
void set_dom_node_properties_json(i32 node_id, String specified_values_json, String computed_values_json);
|
||||
void set_dom_node_properties_json(i32 node_id, String specified_values_json, String computed_values_json, String custom_properties_json);
|
||||
|
||||
void set_inspected_node(i32 node_id);
|
||||
void select_default_node();
|
||||
|
@ -29,7 +29,7 @@ private:
|
|||
InspectorWidget();
|
||||
|
||||
void set_inspected_node(GUI::ModelIndex);
|
||||
void load_style_json(String specified_values_json, String computed_values_json);
|
||||
void load_style_json(String specified_values_json, String computed_values_json, String custom_properties_json);
|
||||
void clear_style_json();
|
||||
|
||||
RefPtr<Web::OutOfProcessWebView> m_web_view;
|
||||
|
@ -37,6 +37,7 @@ private:
|
|||
RefPtr<GUI::TreeView> m_dom_tree_view;
|
||||
RefPtr<GUI::TableView> m_style_table_view;
|
||||
RefPtr<GUI::TableView> m_computed_style_table_view;
|
||||
RefPtr<GUI::TableView> m_custom_properties_table_view;
|
||||
|
||||
// Multi-process mode
|
||||
Optional<i32> m_pending_inspect_node_id;
|
||||
|
@ -44,6 +45,7 @@ private:
|
|||
Optional<String> m_dom_json;
|
||||
Optional<String> m_inspected_node_specified_values_json;
|
||||
Optional<String> m_inspected_node_computed_values_json;
|
||||
Optional<String> m_inspected_node_custom_properties_json;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue