mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibWeb: Add support for repeating linear gradient in Skia painter
This commit is contained in:
parent
dadf82f2a2
commit
fb03f36cfa
Notes:
sideshowbarker
2024-07-17 07:14:09 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/fb03f36cfa Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/668
1 changed files with 4 additions and 4 deletions
|
@ -633,11 +633,11 @@ CommandResult DisplayListPlayerSkia::paint_linear_gradient(PaintLinearGradient c
|
|||
APPLY_PATH_CLIP_IF_NEEDED
|
||||
|
||||
auto const& linear_gradient_data = command.linear_gradient_data;
|
||||
|
||||
// FIXME: Account for repeat length
|
||||
|
||||
auto const& color_stop_list = linear_gradient_data.color_stops.list;
|
||||
auto color_stop_list = linear_gradient_data.color_stops.list;
|
||||
auto const& repeat_length = linear_gradient_data.color_stops.repeat_length;
|
||||
VERIFY(!color_stop_list.is_empty());
|
||||
if (repeat_length.has_value())
|
||||
color_stop_list = expand_repeat_length(color_stop_list, *repeat_length);
|
||||
|
||||
auto stops_with_replaced_transition_hints = replace_transition_hints_with_normal_color_stops(color_stop_list);
|
||||
|
||||
|
|
Loading…
Reference in a new issue