mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +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:
parent
3b76cc5245
commit
7639eccd53
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue