mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
LibWeb: Optimize CSS::StyleDeclaration for size
We can reduce the amount of padding the compiler adds in order to ensure data alignment of member variables by ordering the types in a struct by size in decending order. Found By PVS-Studio: https://pvs-studio.com/en/docs/warnings/v802/
This commit is contained in:
parent
1b00ddf07e
commit
027cbe6b89
3 changed files with 4 additions and 4 deletions
|
@ -14,10 +14,10 @@
|
|||
namespace Web::CSS {
|
||||
|
||||
struct StyleProperty {
|
||||
bool important { false };
|
||||
CSS::PropertyID property_id;
|
||||
NonnullRefPtr<StyleValue> value;
|
||||
String custom_name {};
|
||||
bool important { false };
|
||||
};
|
||||
|
||||
class CSSStyleDeclaration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue