mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
LibWeb: Implement Path2D#addPath
Required by Ruffle.
This commit is contained in:
parent
1f97adbee8
commit
a964ebc255
3 changed files with 40 additions and 1 deletions
|
@ -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&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue