2023-05-08 02:51:03 -03:00
|
|
|
/*
|
2024-10-04 08:19:50 -03:00
|
|
|
* Copyright (c) 2023, Andreas Kling <andreas@ladybird.org>
|
2023-05-08 02:51:03 -03:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/CSS/StyleProperty.h>
|
2025-08-08 06:11:51 -03:00
|
|
|
#include <LibWeb/CSS/StyleValues/StyleValue.h>
|
2023-05-08 02:51:03 -03:00
|
|
|
|
|
|
|
|
namespace Web::CSS {
|
|
|
|
|
|
|
|
|
|
StyleProperty::~StyleProperty() = default;
|
|
|
|
|
|
2025-07-27 14:41:21 -03:00
|
|
|
bool StyleProperty::operator==(StyleProperty const& other) const
|
|
|
|
|
{
|
|
|
|
|
if (important != other.important || property_id != other.property_id || custom_name != other.custom_name)
|
|
|
|
|
return false;
|
|
|
|
|
return value->equals(*other.value);
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-08 02:51:03 -03:00
|
|
|
}
|