mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +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
|
@ -291,8 +291,8 @@ Tab::Tab(BrowserWindow& window)
|
|||
m_dom_inspector_widget->set_dom_json(dom_tree);
|
||||
};
|
||||
|
||||
hooks().on_get_dom_node_properties = [this](auto node_id, auto& specified, auto& computed) {
|
||||
m_dom_inspector_widget->set_dom_node_properties_json(node_id, specified, computed);
|
||||
hooks().on_get_dom_node_properties = [this](auto node_id, auto& specified, auto& computed, auto& custom_properties) {
|
||||
m_dom_inspector_widget->set_dom_node_properties_json(node_id, specified, computed, custom_properties);
|
||||
};
|
||||
|
||||
hooks().on_js_console_new_message = [this](auto message_index) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue