summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-03-27 14:06:11 +0200
committerAndreas Kling <kling@serenityos.org>2023-03-27 23:28:07 +0200
commit7639eccd53327e93b2055433cdb2e3a7a49e463e (patch)
treee3ab3476b4f6bb7c0938c9b187e6d2168d3718d4 /Userland
parent3b76cc5245dd3e81eea0524f8d471ad9041dfea3 (diff)
downloadserenity-7639eccd53327e93b2055433cdb2e3a7a49e463e.zip
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.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/Layout/AvailableSpace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/AvailableSpace.h b/Userland/Libraries/LibWeb/Layout/AvailableSpace.h
index d4984a6146..9e65b0ef44 100644
--- a/Userland/Libraries/LibWeb/Layout/AvailableSpace.h
+++ b/Userland/Libraries/LibWeb/Layout/AvailableSpace.h
@@ -47,6 +47,8 @@ public:
DeprecatedString to_deprecated_string() const;
+ bool operator==(AvailableSize const& other) const = default;
+
private:
AvailableSize(Type type, CSSPixels);
@@ -62,6 +64,8 @@ public:
{
}
+ bool operator==(AvailableSpace const& other) const = default;
+
AvailableSize width;
AvailableSize height;