1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:28:12 +00:00

LibWeb: Rearrange HTMLElement members to save 8 bytes per instance

This commit is contained in:
Andreas Kling 2023-11-19 20:32:44 +01:00
parent 48dbec8a9e
commit aa23a7b58d

View file

@ -81,6 +81,8 @@ private:
// ^HTML::GlobalEventHandlers
virtual DOM::EventTarget& global_event_handlers_to_event_target(FlyString const&) override { return *this; }
JS::GCPtr<DOMStringMap> m_dataset;
enum class ContentEditableState {
True,
False,
@ -88,8 +90,6 @@ private:
};
ContentEditableState m_content_editable_state { ContentEditableState::Inherit };
JS::GCPtr<DOMStringMap> m_dataset;
// https://html.spec.whatwg.org/multipage/interaction.html#locked-for-focus
bool m_locked_for_focus { false };