mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +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
Notes:
sideshowbarker
2024-07-18 21:50:37 +09:00
Author: https://github.com/ant1441
Commit: 53c4be926b
Pull-request: https://github.com/SerenityOS/serenity/pull/5558
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