[webkit-changes] [WebKit/WebKit] 1b555d: Shrink Layout::ElementBox slightly

Simon Fraser noreply at github.com
Wed Feb 1 08:46:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1b555d02b07f3338afe4aac3ed96bca02f43992d
      https://github.com/WebKit/WebKit/commit/1b555d02b07f3338afe4aac3ed96bca02f43992d
  Author: Simon Fraser <simon.fraser at apple.com>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M Source/WebCore/layout/layouttree/LayoutBox.cpp
    M Source/WebCore/layout/layouttree/LayoutBox.h
    M Source/WebCore/layout/layouttree/LayoutElementBox.h
    M Source/WebCore/rendering/style/RenderStyle.cpp

  Log Message:
  -----------
  Shrink Layout::ElementBox slightly
https://bugs.webkit.org/show_bug.cgi?id=251475
rdar://104894626

Reviewed by Alan Baradlay.

Shrink Layout::ElementBox from 184 bytes (13 bytes of padding) to 176 bytes
(5 bytes of padding) by shifting the bitfields in Box up into the spare
4 bytes between CanMakeCheckedPtr's m_count and m_style.

* Source/WebCore/layout/layouttree/LayoutBox.cpp:
(WebCore::Layout::Box::Box):
* Source/WebCore/layout/layouttree/LayoutBox.h:
* Source/WebCore/layout/layouttree/LayoutElementBox.h:
* Source/WebCore/rendering/style/RenderStyle.cpp:

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




More information about the webkit-changes mailing list