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:
Sam Atkins 2025-07-09 10:39:22 +01:00 committed by Jelle Raaijmakers
parent c3e470569e
commit 0809eacd97
Notes: github-actions[bot] 2025-07-09 11:22:44 +00:00
6 changed files with 51 additions and 49 deletions

View file

@ -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;
}