[webkit-changes] [WebKit/WebKit] a6fc97: Optimize layout of Document to reduce padding

Simon Fraser noreply at github.com
Sun Feb 5 22:42:11 PST 2023


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

  Changed paths:
    M Source/WebCore/dom/ActiveDOMObject.h
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h
    M Source/WebCore/dom/ScriptExecutionContext.h

  Log Message:
  -----------
  Optimize layout of Document to reduce padding
https://bugs.webkit.org/show_bug.cgi?id=251752
<rdar://problem/105050739>

Reviewed by Cameron McCormack.

Reduce the size of SVGDocument (via Document shrinkage) from 3088 to 2960 bytes. This drops it a malloc
size class from 3584 bytes to 3072 bytes, saving 7KB on a sample Wikipedia page.

* Source/WebCore/dom/ActiveDOMObject.h:
* Source/WebCore/dom/Document.cpp:
(WebCore::m_isNonRenderedPlaceholder):
* Source/WebCore/dom/Document.h:
* Source/WebCore/dom/ScriptExecutionContext.h:

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




More information about the webkit-changes mailing list