Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 08049af9553d4cf0f525a2740254eb7bbc7c6ec4
      
https://github.com/WebKit/WebKit/commit/08049af9553d4cf0f525a2740254eb7bbc7c6ec4
  Author: Yulun Wu <[email protected]>
  Date:   2026-02-09 (Mon, 09 Feb 2026)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/grid/GridLayout.cpp

  Log Message:
  -----------
  [GFC] Fix vector allocation bug in grid sizing algorithm.
https://bugs.webkit.org/show_bug.cgi?id=307280
<rdar://169927118>

Reviewed by Sammy Gill.

This PR fixes an issue where UsedInlineSizes and UsedBlockSizes
are initialized with a sized constructors, after which append()
adds more elements to the vector.

This caused the vectors to be 2× the intended size.

* Source/WebCore/layout/formattingContexts/grid/GridLayout.cpp:
(WebCore::Layout::GridLayout::layoutGridItems const):

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



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

Reply via email to