LibWeb+WebContent: Take advantage of IPC encoding improvements

This removes a couple of places where we were constructing strings or
vectors just to transfer data over IPC. And passes some values by const&
to remove clangd noise.
This commit is contained in:
Timothy Flynn 2025-03-08 10:41:16 -05:00 committed by Tim Flynn
commit 62912b985a
Notes: github-actions[bot] 2025-03-09 15:15:48 +00:00
11 changed files with 50 additions and 51 deletions

View file

@ -115,8 +115,7 @@ void DevToolsConsoleClient::send_messages(i32 start_index)
return;
}
Vector<WebView::ConsoleOutput> messages { m_console_output.span().slice(start_index) };
m_client->did_get_unstyled_js_console_messages(start_index, move(messages));
m_client->did_get_unstyled_js_console_messages(start_index, m_console_output.span().slice(start_index));
}
// 2.3. Printer(logLevel, args[, options]), https://console.spec.whatwg.org/#printer