mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb/CSS: Update definition for cursor property
No functional changes. The main difference is renaming the cursor enum
to match the spec term `<cursor-predefined>`, which is a bit more
verbose but clearer in meaning.
Corresponds to 1a57a4025c
This commit is contained in:
committed by
Jelle Raaijmakers
parent
c3e470569e
commit
0809eacd97
Notes:
github-actions[bot]
2025-07-09 11:22:44 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/0809eacd976 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5367 Reviewed-by: https://github.com/gmta ✅
@@ -1061,16 +1061,16 @@ Vector<CursorData> ComputedProperties::cursor() const
|
||||
continue;
|
||||
}
|
||||
|
||||
if (auto keyword = keyword_to_cursor(item->to_keyword()); keyword.has_value())
|
||||
if (auto keyword = keyword_to_cursor_predefined(item->to_keyword()); keyword.has_value())
|
||||
cursors.append(keyword.release_value());
|
||||
}
|
||||
} else if (value.is_keyword()) {
|
||||
if (auto keyword = keyword_to_cursor(value.to_keyword()); keyword.has_value())
|
||||
if (auto keyword = keyword_to_cursor_predefined(value.to_keyword()); keyword.has_value())
|
||||
cursors.append(keyword.release_value());
|
||||
}
|
||||
|
||||
if (cursors.is_empty())
|
||||
cursors.append(Cursor::Auto);
|
||||
cursors.append(CursorPredefined::Auto);
|
||||
|
||||
return cursors;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user