LibWeb: Add missing hue-rotate()
filter spec comment
This commit is contained in:
parent
5a832c0326
commit
b877d71db7
Notes:
sideshowbarker
2024-07-17 06:10:55 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/b877d71db7 Pull-request: https://github.com/SerenityOS/serenity/pull/15463 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/awesomekling
1 changed files with 3 additions and 0 deletions
|
@ -87,6 +87,9 @@ void apply_filter_list(Gfx::Bitmap& target_bitmap, Layout::Node const& node, Spa
|
|||
}
|
||||
},
|
||||
[&](CSS::Filter::HueRotate const& hue_rotate) {
|
||||
// Applies a hue rotation on the input image.
|
||||
// The passed parameter defines the number of degrees around the color circle the input samples will be adjusted.
|
||||
// A value of 0deg leaves the input unchanged. Implementations must not normalize this value in order to allow animations beyond 360deg.
|
||||
apply_color_filter(Gfx::HueRotateFilter { hue_rotate.angle_degrees() });
|
||||
},
|
||||
[&](CSS::Filter::DropShadow const&) {
|
||||
|
|
Loading…
Add table
Reference in a new issue