mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb+LibWebView+WebContent: Add an IPC call for Navigable::reload()
This commit is contained in:
committed by
Alexander Kalenik
parent
88f3145f8a
commit
bfef08177e
@@ -156,6 +156,12 @@ void ConnectionFromClient::load_html(u64 page_id, ByteString const& html)
|
||||
page->page().load_html(html);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::reload(u64 page_id)
|
||||
{
|
||||
if (auto page = this->page(page_id); page.has_value())
|
||||
page->page().reload();
|
||||
}
|
||||
|
||||
void ConnectionFromClient::set_viewport_rect(u64 page_id, Web::DevicePixelRect const& rect)
|
||||
{
|
||||
if (auto page = this->page(page_id); page.has_value())
|
||||
|
||||
Reference in New Issue
Block a user