mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-02 15:12:04 +00:00
The effect of this is hard to measure, but reducing them from 4 bytes each to 2 bytes can't hurt. :^)
28 lines
463 B
C++
28 lines
463 B
C++
/*
|
|
* Copyright (c) 2023, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/FlyString.h>
|
|
#include <LibWeb/CSS/PropertyID.h>
|
|
|
|
namespace Web::CSS {
|
|
|
|
enum class Important : u8 {
|
|
No,
|
|
Yes,
|
|
};
|
|
|
|
struct StyleProperty {
|
|
~StyleProperty();
|
|
|
|
Important important { Important::No };
|
|
CSS::PropertyID property_id;
|
|
NonnullRefPtr<CSSStyleValue const> value;
|
|
FlyString custom_name {};
|
|
};
|
|
|
|
}
|