mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 17:15:44 +00:00
LibWeb: Tweak PageView::on_link_hover hook
Change: on_link_hover(String) -> on_link_hover(URL) Also, we now fire the hook when a link is unhovered as well, allowing the embedder to react to nothing being hovered anymore.
This commit is contained in:
@@ -232,11 +232,13 @@ void PageView::page_did_leave_tooltip_area()
|
||||
void PageView::page_did_hover_link(const URL& url)
|
||||
{
|
||||
if (on_link_hover)
|
||||
on_link_hover(url.to_string());
|
||||
on_link_hover(url);
|
||||
}
|
||||
|
||||
void PageView::page_did_unhover_link()
|
||||
{
|
||||
if (on_link_hover)
|
||||
on_link_hover({});
|
||||
}
|
||||
|
||||
void PageView::page_did_invalidate(const Gfx::IntRect&)
|
||||
|
||||
Reference in New Issue
Block a user