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

LibWeb: Add default equality operators to Available{Space,Size}

I find myself adding these over and over again while testing.
Let's just have them always there.
This commit is contained in:
Andreas Kling 2023-03-27 14:06:11 +02:00
parent 3b76cc5245
commit 7639eccd53

View file

@ -47,6 +47,8 @@ public:
DeprecatedString to_deprecated_string() const; DeprecatedString to_deprecated_string() const;
bool operator==(AvailableSize const& other) const = default;
private: private:
AvailableSize(Type type, CSSPixels); AvailableSize(Type type, CSSPixels);
@ -62,6 +64,8 @@ public:
{ {
} }
bool operator==(AvailableSpace const& other) const = default;
AvailableSize width; AvailableSize width;
AvailableSize height; AvailableSize height;