1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

LibWeb: Implement Path2D#addPath

Required by Ruffle.
This commit is contained in:
Luke Wilde 2023-02-27 18:23:31 +00:00 committed by Andreas Kling
parent 1f97adbee8
commit a964ebc255
3 changed files with 40 additions and 1 deletions

View file

@ -9,6 +9,7 @@
#include <AK/RefCounted.h>
#include <LibGfx/Path.h>
#include <LibWeb/Bindings/PlatformObject.h>
#include <LibWeb/Geometry/DOMMatrixReadOnly.h>
#include <LibWeb/HTML/Canvas/CanvasPath.h>
namespace Web::HTML {
@ -25,6 +26,8 @@ public:
virtual ~Path2D() override;
WebIDL::ExceptionOr<void> add_path(JS::NonnullGCPtr<Path2D> path, Geometry::DOMMatrix2DInit& transform);
private:
Path2D(JS::Realm&, Optional<Variant<JS::Handle<Path2D>, DeprecatedString>> const&);