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

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

  Log Message:
  -----------
  Use default member initializers for RenderLayoutState bitfields
https://bugs.webkit.org/show_bug.cgi?id=316634
rdar://179070267

Reviewed by Dan Glastonbury.

The five constant-false bitfields (m_clipped, m_isPaginated,
m_pageLogicalHeightChanged, and the two ASSERT_ENABLED-only
m_layoutDeltaXSaturated/m_layoutDeltaYSaturated) were redundantly
initialized to false in each of the three constructors' init-lists.
Give them default member initializers instead, matching the existing
m_marginTrimBlockStart DMI, and remove the duplicated inits.

The default constructor's init-list is now empty, so it becomes
= default. This also fixes a latent inconsistency where the
RenderElement& constructor initialized m_marginTrimBlockStart only
inside its #if ASSERT_ENABLED block; the DMI now covers it
unconditionally. No behavior change.

* Source/WebCore/rendering/RenderLayoutState.cpp:
(WebCore::RenderLayoutState::RenderLayoutState):
* Source/WebCore/rendering/RenderLayoutState.h:
(WebCore::RenderLayoutState::RenderLayoutState): Deleted.

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



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

Reply via email to