ladybird/Libraries/LibWeb/CSS/StyleProperty.h
Callum Law 5381146e85 LibWeb: Include PropertyID.h in fewer header files
This reduces the size of the recompile when PropertyID.h is modified
from ~1500 to ~125
2025-10-27 14:50:54 +00:00

31 lines
512 B
C++

/*
* Copyright (c) 2023, Andreas Kling <andreas@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/FlyString.h>
#include <LibWeb/Forward.h>
namespace Web::CSS {
enum class Important : u8 {
No,
Yes,
};
struct WEB_API StyleProperty {
~StyleProperty();
Important important { Important::No };
PropertyID property_id;
NonnullRefPtr<StyleValue const> value;
FlyString custom_name {};
bool operator==(StyleProperty const& other) const;
};
}