LibWeb: Hook up SVG component transfer filter to Skia

This commit is contained in:
Jelle Raaijmakers 2025-11-06 15:50:45 +01:00 committed by Jelle Raaijmakers
parent 70e98e72a8
commit b4810f47a3
Notes: github-actions[bot] 2025-11-09 00:23:44 +00:00
8 changed files with 264 additions and 1 deletions

View file

@ -6,6 +6,8 @@
#pragma once
#include <AK/ByteBuffer.h>
#include <AK/Optional.h>
#include <LibWeb/SVG/SVGAnimatedEnumeration.h>
#include <LibWeb/SVG/SVGAnimatedNumber.h>
#include <LibWeb/SVG/SVGAnimatedNumberList.h>
@ -40,6 +42,9 @@ public:
GC::Ref<SVGAnimatedNumber> exponent();
GC::Ref<SVGAnimatedNumber> offset();
Vector<float> table_float_values();
ReadonlyBytes color_table();
protected:
SVGComponentTransferFunctionElement(DOM::Document&, DOM::QualifiedName);
@ -57,6 +62,8 @@ private:
GC::Ptr<SVGAnimatedNumber> m_amplitude;
GC::Ptr<SVGAnimatedNumber> m_exponent;
GC::Ptr<SVGAnimatedNumber> m_offset;
Optional<ByteBuffer> m_cached_color_table;
};
}