mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +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
Notes:
sideshowbarker
2024-07-17 23:01:35 +09:00
Author: https://github.com/AtkinsSJ
Commit: 54bbb97ac6
Pull-request: https://github.com/SerenityOS/serenity/pull/11187
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