mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
LibWeb/SVG: Support url() in the stroke attribute
This allows you to draw gradients in strokes, for example.
This commit is contained in:
parent
8993a710f8
commit
42a183720b
Notes:
sideshowbarker
2024-07-17 02:21:14 +09:00
Author: https://github.com/Lubrsi
Commit: 42a183720b
Pull-request: https://github.com/SerenityOS/serenity/pull/19287
Reviewed-by: https://github.com/MacDue ✅
8 changed files with 51 additions and 12 deletions
|
@ -43,12 +43,15 @@ public:
|
|||
Gfx::AffineTransform get_transform() const;
|
||||
|
||||
Optional<Gfx::PaintStyle const&> fill_paint_style(SVGPaintContext const&) const;
|
||||
Optional<Gfx::PaintStyle const&> stroke_paint_style(SVGPaintContext const&) const;
|
||||
|
||||
protected:
|
||||
SVGGraphicsElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
|
||||
|
||||
Optional<Gfx::PaintStyle const&> svg_paint_computed_value_to_gfx_paint_style(SVGPaintContext const& paint_context, Optional<CSS::SVGPaint> const& paint_value) const;
|
||||
|
||||
Gfx::AffineTransform m_transform = {};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue