mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +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
Notes:
sideshowbarker
2024-07-18 00:41:35 +09:00
Author: https://github.com/awesomekling
Commit: 7639eccd53
Pull-request: https://github.com/SerenityOS/serenity/pull/18066
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