mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
Ladybird+LibWebView: Add an Inspector action to screenshot a DOM node
This commit is contained in:
parent
e3df035c5d
commit
71fdf0860e
Notes:
sideshowbarker
2024-07-17 06:35:16 +09:00
Author: https://github.com/trflynn89
Commit: 71fdf0860e
Pull-request: https://github.com/SerenityOS/serenity/pull/22186
7 changed files with 31 additions and 0 deletions
|
@ -245,6 +245,15 @@ void InspectorClient::context_menu_copy_dom_node()
|
|||
m_context_menu_data.clear();
|
||||
}
|
||||
|
||||
void InspectorClient::context_menu_screenshot_dom_node()
|
||||
{
|
||||
VERIFY(m_context_menu_data.has_value());
|
||||
|
||||
m_content_web_view.take_dom_node_screenshot(m_context_menu_data->dom_node_id).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
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