mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 02:08:58 +00:00
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:
parent
65910dc343
commit
5431f1534a
Notes:
github-actions[bot]
2025-08-26 10:20:09 +00:00
Author: https://github.com/Calme1709
Commit: 5431f1534a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5984
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/gmta ✅
1 changed files with 0 additions and 3 deletions
|
@ -787,9 +787,6 @@ Positioning ComputedProperties::position() const
|
||||||
|
|
||||||
bool ComputedProperties::operator==(ComputedProperties const& other) 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) {
|
for (size_t i = 0; i < m_property_values.size(); ++i) {
|
||||||
auto const& my_style = m_property_values[i];
|
auto const& my_style = m_property_values[i];
|
||||||
auto const& other_style = other.m_property_values[i];
|
auto const& other_style = other.m_property_values[i];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue