mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Meta: Use is_abstract_image() for the "image" CSS type
This commit is contained in:
parent
b219931dfc
commit
0829aa5df0
Notes:
sideshowbarker
2024-07-17 07:08:07 +09:00
Author: https://github.com/MacDue
Commit: 0829aa5df0
Pull-request: https://github.com/SerenityOS/serenity/pull/15123
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ bool property_accepts_value(PropertyID property_id, StyleValue& style_value)
|
|||
output_numeric_value_check(property_generator, "is_frequency"sv, "as_frequency().frequency().to_hertz()"sv, Array { "Frequency"sv }, min_value, max_value);
|
||||
} else if (type_name == "image") {
|
||||
property_generator.append(R"~~~(
|
||||
if (style_value.is_image() || style_value.is_linear_gradient())
|
||||
if (style_value.is_abstract_image())
|
||||
return true;
|
||||
)~~~");
|
||||
} else if (type_name == "integer") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue