mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 12:46:06 +00:00
LibWeb: Add {,de}serialization steps for DOMPoint
This commit is contained in:
parent
bf4fb39bfb
commit
b7006b2423
Notes:
sideshowbarker
2024-07-17 03:51:15 +09:00
Author: https://github.com/kennethmyhra
Commit: b7006b2423
Pull-request: https://github.com/SerenityOS/serenity/pull/23538
Reviewed-by: https://github.com/ADKaster
5 changed files with 23 additions and 0 deletions
|
@ -18,6 +18,7 @@ class DOMPoint final : public DOMPointReadOnly {
|
|||
|
||||
public:
|
||||
static JS::NonnullGCPtr<DOMPoint> construct_impl(JS::Realm&, double x = 0, double y = 0, double z = 0, double w = 1);
|
||||
static JS::NonnullGCPtr<DOMPoint> create(JS::Realm&);
|
||||
|
||||
static JS::NonnullGCPtr<DOMPoint> from_point(JS::VM&, DOMPointInit const&);
|
||||
|
||||
|
@ -33,8 +34,11 @@ public:
|
|||
void set_z(double z) { m_z = z; }
|
||||
void set_w(double w) { m_w = w; }
|
||||
|
||||
virtual StringView interface_name() const override { return "DOMPoint"sv; }
|
||||
|
||||
private:
|
||||
DOMPoint(JS::Realm&, double x, double y, double z, double w);
|
||||
DOMPoint(JS::Realm&);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue