LibWeb: Misc. SVG improvements

No functional changes: added spec comments, moved some code, removed an
unused member.
This commit is contained in:
Jelle Raaijmakers 2024-10-28 19:38:53 +01:00 committed by Andreas Kling
commit 66925a3d80
Notes: github-actions[bot] 2024-10-28 21:54:26 +00:00
4 changed files with 8 additions and 7 deletions

View file

@ -13,6 +13,7 @@
namespace Web::SVG {
// https://svgwg.org/svg2-draft/pservers.html#GradientStops
class SVGStopElement final : public SVGElement {
WEB_PLATFORM_OBJECT(SVGStopElement, SVGElement);
JS_DECLARE_ALLOCATOR(SVGStopElement);
@ -36,7 +37,6 @@ private:
virtual void initialize(JS::Realm&) override;
Optional<NumberPercentage> m_offset;
Optional<Gfx::Color> m_color;
};
}