LibWeb: Remove unnecessary check on ComputedProperties array size

This is a constant length array - this check will always be false
This commit is contained in:
Callum Law 2025-08-24 01:17:21 +12:00 committed by Jelle Raaijmakers
commit 5431f1534a
Notes: github-actions[bot] 2025-08-26 10:20:09 +00:00

View file

@ -787,9 +787,6 @@ Positioning ComputedProperties::position() const
bool ComputedProperties::operator==(ComputedProperties const& other) const
{
if (m_property_values.size() != other.m_property_values.size())
return false;
for (size_t i = 0; i < m_property_values.size(); ++i) {
auto const& my_style = m_property_values[i];
auto const& other_style = other.m_property_values[i];