1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:38:11 +00:00

Ladybird+LibWebView: Add an Inspector action to insert a child DOM node

This commit is contained in:
Timothy Flynn 2023-12-07 11:05:34 -05:00 committed by Andreas Kling
parent c6a11a77b5
commit d5d6ff8bf1
7 changed files with 78 additions and 0 deletions

View file

@ -254,6 +254,26 @@ void InspectorClient::context_menu_screenshot_dom_node()
m_context_menu_data.clear();
}
void InspectorClient::context_menu_create_child_element()
{
VERIFY(m_context_menu_data.has_value());
m_pending_selection = m_content_web_view.create_child_element(m_context_menu_data->dom_node_id);
inspect();
m_context_menu_data.clear();
}
void InspectorClient::context_menu_create_child_text_node()
{
VERIFY(m_context_menu_data.has_value());
m_pending_selection = m_content_web_view.create_child_text_node(m_context_menu_data->dom_node_id);
inspect();
m_context_menu_data.clear();
}
void InspectorClient::context_menu_remove_dom_node()
{
VERIFY(m_context_menu_data.has_value());