From 53c4be926b74e4ad7cd4d95a78c1cb8342098884 Mon Sep 17 00:00:00 2001 From: Adam Hodgen Date: Sat, 27 Feb 2021 23:34:57 +0000 Subject: [PATCH] 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 --- Userland/Libraries/LibWeb/CSS/Default.css | 4 ++++ Userland/Libraries/LibWeb/OutOfProcessWebView.cpp | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/Default.css b/Userland/Libraries/LibWeb/CSS/Default.css index e151de6b5fb..6376d850ddb 100644 --- a/Userland/Libraries/LibWeb/CSS/Default.css +++ b/Userland/Libraries/LibWeb/CSS/Default.css @@ -2,6 +2,10 @@ html { font-family: sans-serif; } +a { + cursor: pointer; +} + head, link, meta, diff --git a/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp b/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp index 7b34e9f9bb5..d2373141683 100644 --- a/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp +++ b/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp @@ -252,7 +252,6 @@ void OutOfProcessWebView::notify_server_did_request_scroll_into_view(Badge, const URL& url) { - set_override_cursor(Gfx::StandardCursor::Hand); if (on_link_hover) on_link_hover(url); }