Skip to content

Commit 02611c9

Browse files
committed
LibWeb: Shave 16 bytes off of each HTMLElement
1 parent 6894034 commit 02611c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Libraries/LibWeb/HTML/HTMLElement.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Web::HTML {
2424
__ENUMERATE_HTML_ELEMENT_DIR_ATTRIBUTE(auto)
2525

2626
// https://html.spec.whatwg.org/multipage/interaction.html#attr-contenteditable
27-
enum class ContentEditableState {
27+
enum class ContentEditableState : u8 {
2828
True,
2929
False,
3030
PlaintextOnly,
@@ -164,7 +164,7 @@ class WEB_API HTMLElement
164164

165165
virtual void removed_from(Node* old_parent, Node& old_root) override;
166166

167-
enum class PopoverVisibilityState {
167+
enum class PopoverVisibilityState : u8 {
168168
Hidden,
169169
Showing,
170170
};
@@ -261,12 +261,12 @@ class WEB_API HTMLElement
261261
// https://html.spec.whatwg.org/multipage/popover.html#popover-visibility-state
262262
PopoverVisibilityState m_popover_visibility_state { PopoverVisibilityState::Hidden };
263263

264-
// https://html.spec.whatwg.org/multipage/popover.html#popover-invoker
265-
GC::Ptr<HTMLElement> m_popover_invoker;
266-
267264
// https://html.spec.whatwg.org/multipage/popover.html#popover-showing-or-hiding
268265
bool m_popover_showing_or_hiding { false };
269266

267+
// https://html.spec.whatwg.org/multipage/popover.html#popover-invoker
268+
GC::Ptr<HTMLElement> m_popover_invoker;
269+
270270
// https://html.spec.whatwg.org/multipage/popover.html#the-popover-attribute:toggle-task-tracker
271271
Optional<ToggleTaskTracker> m_popover_toggle_task_tracker;
272272

0 commit comments

Comments
 (0)