From ed1bee222b5165d679a544891894123300306a1e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 12 Dec 2023 15:26:46 +0100 Subject: [PATCH] LibJS: Give Shape::TransitionType an underlying 8-bit type This shrinks Shape by 8 bytes. :^) --- Userland/Libraries/LibJS/Runtime/Shape.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Shape.h b/Userland/Libraries/LibJS/Runtime/Shape.h index 89dad6cfeb..6d78b3570e 100644 --- a/Userland/Libraries/LibJS/Runtime/Shape.h +++ b/Userland/Libraries/LibJS/Runtime/Shape.h @@ -43,7 +43,7 @@ class Shape final public: virtual ~Shape() override = default; - enum class TransitionType { + enum class TransitionType : u8 { Invalid, Put, Configure,