Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fce5a846fe274f24ac59e66edbdd0eb432808367
      
https://github.com/WebKit/WebKit/commit/fce5a846fe274f24ac59e66edbdd0eb432808367
  Author: Tyler Wilcock <[email protected]>
  Date:   2025-05-08 (Thu, 08 May 2025)

  Changed paths:
    M Source/WebCore/SaferCPPExpectations/NoUncountedMemberCheckerExpectations
    M Source/WebCore/accessibility/AXCoreObject.h
    M Source/WebCore/accessibility/AccessibilityObject.h

  Log Message:
  -----------
  AX: Optimize AccessibilityObject member variable ordering to reduce its size 
by 24 bytes
https://bugs.webkit.org/show_bug.cgi?id=292676
rdar://150864573

Reviewed by Joshua Hoffman.

Rearrange fields in AXCoreObject and AccessibilityObject to avoid unnecessary 
padding that greatly increases the final
object size. Also change AccessibilityIsIgnoredFromParentData to have bitfields 
instead of bools, and change its
AXCoreObject* parent field to an "isValid" bitfield, since we only ever 
queuried the field to check whether it was null.

Before this commit, this was the size of our classes:

AccessibilityObject: 96 bytes
AccessibilityNodeObject: 104 bytes
AccessibilityRenderObject: 112 bytes

After this commit, this is the size of our classes:

AccessibilityObject: 72 bytes
AccessibilityNodeObject: 80 bytes
AccessibilityRenderObject: 88 bytes

* Source/WebCore/accessibility/AXCoreObject.h:
(WebCore::AccessibilityIsIgnoredFromParentData::AccessibilityIsIgnoredFromParentData):
(WebCore::AccessibilityIsIgnoredFromParentData::isNull const):
* Source/WebCore/accessibility/AccessibilityObject.h:

Canonical link: https://commits.webkit.org/294664@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to