mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00: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:
parent
c3e470569e
commit
0809eacd97
Notes:
github-actions[bot]
2025-07-09 11:22:44 +00:00
Author: https://github.com/AtkinsSJ
Commit: 0809eacd97
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5367
Reviewed-by: https://github.com/gmta ✅
6 changed files with 51 additions and 49 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue