[webkit-changes] [WebKit/WebKit] e30f05: [css-masonry] Remove m_masonryItems

Brandon Stewart noreply at github.com
Wed Dec 18 20:40:26 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e30f054759b2d9edb5e8b37bbd75ab008e75bbe1
      https://github.com/WebKit/WebKit/commit/e30f054759b2d9edb5e8b37bbd75ab008e75bbe1
  Author: Brandon Stewart <brandonstewart at apple.com>
  Date:   2024-12-18 (Wed, 18 Dec 2024)

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

  Log Message:
  -----------
  [css-masonry] Remove m_masonryItems
https://bugs.webkit.org/show_bug.cgi?id=284908
rdar://problem/141713038

Reviewed by Tim Nguyen.

m_masonryItems is not really needed; we can just iterate through the grid instead.

* Source/WebCore/rendering/GridMasonryLayout.cpp:
(WebCore::GridMasonryLayout::initializeMasonry):
(WebCore::GridMasonryLayout::placeMasonryItems):
(WebCore::GridMasonryLayout::collectMasonryItems): Deleted.
(WebCore::GridMasonryLayout::allocateCapacityForMasonryVector): Deleted.
* Source/WebCore/rendering/GridMasonryLayout.h:

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



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


More information about the webkit-changes mailing list