Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7d811938adae07a25b84d2854ddb30a3a7ba10ce
      
https://github.com/WebKit/WebKit/commit/7d811938adae07a25b84d2854ddb30a3a7ba10ce
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-06-30 (Tue, 30 Jun 2026)

  Changed paths:
    M Source/WebCore/rendering/RenderElement.cpp
    M Source/WebCore/rendering/RenderElement.h

  Log Message:
  -----------
  [RenderElement] Consolidate bitfields and move initializers to the header
https://bugs.webkit.org/show_bug.cgi?id=316822 rdar://179271998

Reviewed by Alan Baradlay and Dan Glastonbury.

Give every RenderElement bitfield a default member initializer so defaults live
with the declarations, and drop the redundant initializers from the constructor.

Keep all single-bit flags as `unsigned` (not `bool`) so the bitfields share one
allocation unit, and move m_lastChild up next to m_firstChild so the two packed
pointers are adjacent and all the flags form a single contiguous run. Layout is
unchanged, as the SameSizeAsRenderElement static_assert confirms.

No behavior change.

* Source/WebCore/rendering/RenderElement.cpp:
(WebCore::RenderElement::RenderElement): Drop redundant member initializers.
* Source/WebCore/rendering/RenderElement.h: Consolidate bitfields, add default
member initializers, move m_lastChild adjacent to m_firstChild.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to