Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bc564ecb10b0693e2dc32333a6ebc1ca76ede886
      
https://github.com/WebKit/WebKit/commit/bc564ecb10b0693e2dc32333a6ebc1ca76ede886
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-13 (Mon, 13 Jul 2026)

  Changed paths:
    M Source/WebCore/rendering/updating/RenderTreeBuilder.cpp

  Log Message:
  -----------
  Fold uninitialized RenderTable local in 
RenderTreeBuilder::attachToRenderElement
https://bugs.webkit.org/show_bug.cgi?id=319217
rdar://182074760

Reviewed by Alan Baradlay.

attachToRenderElement() declared `RenderTable* table;` uninitialized and
assigned it in both branches of an if/else. Fold this into a single
initialized declaration by inverting the guard with dynamicDowncast(),
which also removes the misleadingly-named `afterChild` local (it referred
to the previous sibling / last child, not an "after child").

No behavior change, just clean-up.

* Source/WebCore/rendering/updating/RenderTreeBuilder.cpp:
(WebCore::RenderTreeBuilder::attachToRenderElement):

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



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

Reply via email to