[webkit-changes] [WebKit/WebKit] 95758d: [grid][masonry] Do not add extra grid gap at the b...

Sammy Gill noreply at github.com
Wed May 3 17:12:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 95758ddf1955443174246ba89385a7e52350abbe
      https://github.com/WebKit/WebKit/commit/95758ddf1955443174246ba89385a7e52350abbe
  Author: Sammy Gill <sammy.gill at apple.com>
  Date:   2023-05-03 (Wed, 03 May 2023)

  Changed paths:
    M LayoutTests/TestExpectations
    M Source/WebCore/rendering/RenderGrid.cpp

  Log Message:
  -----------
  [grid][masonry] Do not add extra grid gap at the bottom of masonry rows.
https://bugs.webkit.org/show_bug.cgi?id=256220
rdar://108801925

Reviewed by Brent Fulgham.

We should only be applying gaps between the margin boxes of each pair
of adjacent items in the masonry axis. By adding in an extra gap to
the grid content size (the largest distance between the grid
container’s content-box start edge and the maximum margin-box end of
all the items), we are adding extra spacing that is causing the block
size of the grid to become larger than it should be when the masonry
axis is in the row direction. Instead, we should make sure we just use
the grid content size provided by GridMasonryLayout for the grid's
block size.

* LayoutTests/TestExpectations:
* Source/WebCore/rendering/RenderGrid.cpp:
(WebCore::RenderGrid::layoutMasonry):

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




More information about the webkit-changes mailing list