mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
LibWeb/CSS: Absolutize GradientStyleValues
This lets us not care about non-absolute Length units when resolving gradient data, as they'll already have been converted to px. We can also use Angle::from_style_value() safely on absolutized angles, which reduces some boilerplate code.
This commit is contained in:
Notes:
github-actions[bot]
2025-12-01 11:09:51 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/f81bb1bd8cd Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6894 Reviewed-by: https://github.com/Calme1709 Reviewed-by: https://github.com/gmta
@@ -172,6 +172,7 @@ struct ColorStopListElement {
|
||||
} color_stop;
|
||||
|
||||
bool operator==(ColorStopListElement const&) const = default;
|
||||
ColorStopListElement absolutized(ComputationContext const& context) const;
|
||||
};
|
||||
void serialize_color_stop_list(StringBuilder&, Vector<ColorStopListElement> const&, SerializationMode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user