mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-12 02:30:30 +09:00
Ladybird+LibWebView: Add an Inspector action to insert a child DOM node
This commit is contained in:
parent
c6a11a77b5
commit
d5d6ff8bf1
Notes:
sideshowbarker
2024-07-17 06:40:21 +09:00
Author: https://github.com/trflynn89
Commit: d5d6ff8bf1
Pull-request: https://github.com/SerenityOS/serenity/pull/22198
Reviewed-by: https://github.com/awesomekling
7 changed files with 78 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue