mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
LibWeb: Add operator== to CSS::Number
This will be needed for the .equals() function of the backdrop-filter style value.
This commit is contained in:
parent
84d9a226e6
commit
776538a6c4
1 changed files with 5 additions and 0 deletions
|
@ -76,6 +76,11 @@ public:
|
|||
return String::number(m_value);
|
||||
}
|
||||
|
||||
bool operator==(Number const& other) const
|
||||
{
|
||||
return m_type == other.m_type && m_value == other.m_value;
|
||||
}
|
||||
|
||||
private:
|
||||
float m_value { 0 };
|
||||
Type m_type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue