diff options
author | MacDue <macdue@dueutil.tech> | 2022-10-03 22:54:44 +0100 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-10-07 13:08:24 +0100 |
commit | b877d71db7cddc08b825df8bc63bc86a35cfb2ac (patch) | |
tree | 4f96975f86804745a1f63004252b404d239e11d3 /Userland/Libraries/LibWeb/Painting | |
parent | 5a832c03269fb6ef10a17efcc95e525ff7e8407d (diff) | |
download | serenity-b877d71db7cddc08b825df8bc63bc86a35cfb2ac.zip |
LibWeb: Add missing `hue-rotate()` filter spec comment
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting')
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/FilterPainting.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/FilterPainting.cpp b/Userland/Libraries/LibWeb/Painting/FilterPainting.cpp index 38abcfd482..650e5d8357 100644 --- a/Userland/Libraries/LibWeb/Painting/FilterPainting.cpp +++ b/Userland/Libraries/LibWeb/Painting/FilterPainting.cpp @@ -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&) { |