mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 22:29:10 +00:00
LibDevTools+LibWebView: Take advantage of IPC encoding improvements
This commit is contained in:
parent
62912b985a
commit
5f76324af5
Notes:
github-actions[bot]
2025-03-09 15:15:42 +00:00
Author: https://github.com/trflynn89
Commit: 5f76324af5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3865
9 changed files with 55 additions and 55 deletions
|
@ -131,7 +131,7 @@ void NodeActor::handle_message(StringView type, JsonObject const& message)
|
|||
};
|
||||
|
||||
if (attribute_to_replace.has_value()) {
|
||||
devtools().delegate().replace_dom_node_attribute(dom_node->tab->description(), dom_node->identifier.id, attribute_to_replace.release_value(), move(replacement_attributes), move(on_complete));
|
||||
devtools().delegate().replace_dom_node_attribute(dom_node->tab->description(), dom_node->identifier.id, *attribute_to_replace, move(replacement_attributes), move(on_complete));
|
||||
} else {
|
||||
devtools().delegate().add_dom_node_attributes(dom_node->tab->description(), dom_node->identifier.id, move(replacement_attributes), move(on_complete));
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ void NodeActor::handle_message(StringView type, JsonObject const& message)
|
|||
auto block_token = block_responses();
|
||||
|
||||
devtools().delegate().set_dom_node_text(
|
||||
dom_node->tab->description(), dom_node->identifier.id, value.release_value(),
|
||||
dom_node->tab->description(), dom_node->identifier.id, *value,
|
||||
[weak_self = make_weak_ptr<NodeActor>(), block_token = move(block_token)](ErrorOr<Web::UniqueNodeID> node_id) mutable {
|
||||
if (node_id.is_error()) {
|
||||
dbgln_if(DEVTOOLS_DEBUG, "Unable to edit DOM node: {}", node_id.error());
|
||||
|
|
|
@ -117,7 +117,7 @@ void WalkerActor::handle_message(StringView type, JsonObject const& message)
|
|||
auto block_token = block_responses();
|
||||
|
||||
devtools().delegate().set_dom_node_tag(
|
||||
dom_node->tab->description(), dom_node->identifier.id, tag_name.release_value(),
|
||||
dom_node->tab->description(), dom_node->identifier.id, *tag_name,
|
||||
[weak_self = make_weak_ptr<WalkerActor>(), block_token = move(block_token)](ErrorOr<Web::UniqueNodeID> node_id) mutable {
|
||||
if (node_id.is_error()) {
|
||||
dbgln_if(DEVTOOLS_DEBUG, "Unable to edit DOM node: {}", node_id.error());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue