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

LibWeb: Port Path2D interface from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-08-27 18:55:01 +12:00 committed by Andrew Kaster
parent e8d592ded2
commit 826374d04b
3 changed files with 6 additions and 6 deletions

View file

@ -22,14 +22,14 @@ class Path2D final
WEB_PLATFORM_OBJECT(Path2D, Bindings::PlatformObject);
public:
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Path2D>> construct_impl(JS::Realm&, Optional<Variant<JS::Handle<Path2D>, DeprecatedString>> const& path);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Path2D>> construct_impl(JS::Realm&, Optional<Variant<JS::Handle<Path2D>, String>> const& path);
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&);
Path2D(JS::Realm&, Optional<Variant<JS::Handle<Path2D>, String>> const&);
virtual void initialize(JS::Realm&) override;
};