mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Use widget override cursors
This commit is contained in:
@@ -357,9 +357,7 @@ void InProcessWebView::load_html(const StringView& html, const URL& url)
|
||||
|
||||
bool InProcessWebView::load(const URL& url)
|
||||
{
|
||||
if (window())
|
||||
window()->set_cursor(Gfx::StandardCursor::None);
|
||||
|
||||
set_override_cursor(Gfx::StandardCursor::None);
|
||||
return page().main_frame().loader().load(url, FrameLoader::Type::Navigation);
|
||||
}
|
||||
|
||||
@@ -378,7 +376,7 @@ LayoutDocument* InProcessWebView::layout_root()
|
||||
void InProcessWebView::page_did_request_scroll_into_view(const Gfx::IntRect& rect)
|
||||
{
|
||||
scroll_into_view(rect, true, true);
|
||||
window()->set_cursor(Gfx::StandardCursor::None);
|
||||
set_override_cursor(Gfx::StandardCursor::None);
|
||||
}
|
||||
|
||||
void InProcessWebView::load_empty_document()
|
||||
|
||||
Reference in New Issue
Block a user