diff --git a/Userland/Libraries/LibWeb/CSS/Number.h b/Userland/Libraries/LibWeb/CSS/Number.h index feb2259f3b..cebcd8653c 100644 --- a/Userland/Libraries/LibWeb/CSS/Number.h +++ b/Userland/Libraries/LibWeb/CSS/Number.h @@ -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;