Explorar o código

LibWeb: Rearrange HTMLElement members to save 8 bytes per instance

Andreas Kling hai 1 ano
pai
achega
aa23a7b58d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Userland/Libraries/LibWeb/HTML/HTMLElement.h

+ 2 - 2
Userland/Libraries/LibWeb/HTML/HTMLElement.h

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