mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 05:47:36 +00:00
LibWeb: Set link cursor via the default CSS
This removes the custom handling of cursor for the link element, which also allows overriding the cursor on a link element via CSS
This commit is contained in:
parent
bedcd9cd88
commit
53c4be926b
2 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,10 @@ html {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
head,
|
head,
|
||||||
link,
|
link,
|
||||||
meta,
|
meta,
|
||||||
|
|
|
@ -252,7 +252,6 @@ void OutOfProcessWebView::notify_server_did_request_scroll_into_view(Badge<WebCo
|
||||||
|
|
||||||
void OutOfProcessWebView::notify_server_did_hover_link(Badge<WebContentClient>, const URL& url)
|
void OutOfProcessWebView::notify_server_did_hover_link(Badge<WebContentClient>, const URL& url)
|
||||||
{
|
{
|
||||||
set_override_cursor(Gfx::StandardCursor::Hand);
|
|
||||||
if (on_link_hover)
|
if (on_link_hover)
|
||||||
on_link_hover(url);
|
on_link_hover(url);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue