mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:17:44 +00:00
Browser: Display style properties in DOM Inspector
This makes use of the new `inspect_dom_node()` IPC call.
This commit is contained in:
parent
f381f8d63e
commit
1da07734bb
3 changed files with 48 additions and 3 deletions
|
@ -473,9 +473,10 @@ void Tab::show_inspector_window(Browser::Tab::InspectorTarget)
|
|||
window->set_title("DOM inspector");
|
||||
window->set_icon(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/inspector-object.png"));
|
||||
window->on_close = [&]() {
|
||||
// FIXME: Clear inspected node for OOPWV
|
||||
m_web_content_view->clear_inspected_dom_node();
|
||||
};
|
||||
m_dom_inspector_widget = window->set_main_widget<InspectorWidget>();
|
||||
m_dom_inspector_widget->set_web_view(*m_web_content_view);
|
||||
}
|
||||
|
||||
m_web_content_view->inspect_dom_tree();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue