Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 13d9bbd57202d4cffc86e0bd50bc71635e17cf91
      
https://github.com/WebKit/WebKit/commit/13d9bbd57202d4cffc86e0bd50bc71635e17cf91
  Author: Yulun Wu <[email protected]>
  Date:   2026-05-23 (Sat, 23 May 2026)

  Changed paths:
    A LayoutTests/fast/grid/grid-overflow-after-style-change-crash-expected.txt
    A LayoutTests/fast/grid/grid-overflow-after-style-change-crash.html
    M Source/WebCore/rendering/RenderGrid.cpp

  Log Message:
  -----------
  [GFC] Close updateScrollInfoAfterLayout transaction on GFC early-return
https://bugs.webkit.org/show_bug.cgi?id=315377
<rdar://177732995>

Reviewed by Sammy Gill.

RenderGrid::layoutGrid opens an updateScrollInfoAfterLayout transaction via
beginUpdateScrollInfoAfterLayoutTransaction(), but the modern Grid Formatting
Context (GFC) fast path early-returns before reaching the matching
endAndCommitUpdateScrollInfoAfterLayoutTransaction() on the legacy path.

Mirror the legacy path by calling 
endAndCommitUpdateScrollInfoAfterLayoutTransaction()
on the GFC fast path before returning, so the transaction is always balanced
and deferred blocks are flushed at layout completion.

* LayoutTests/fast/grid/grid-overflow-after-style-change-crash-expected.txt: 
Added.
* LayoutTests/fast/grid/grid-overflow-after-style-change-crash.html: Added.
* Source/WebCore/rendering/RenderGrid.cpp:
(WebCore::RenderGrid::layoutGrid):

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



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

Reply via email to