[webkit-changes] [WebKit/WebKit] 92c4a2: Skip tracksAreWiderThanMinTrackBreadth() if the gr...

Brandon Stewart noreply at github.com
Mon Jan 30 21:01:51 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 92c4a270002ac42a89d6f05a558ae53c7c135352
      https://github.com/WebKit/WebKit/commit/92c4a270002ac42a89d6f05a558ae53c7c135352
  Author: Brandon Stewart <brandonstewart at apple.com>
  Date:   2023-01-30 (Mon, 30 Jan 2023)

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

  Log Message:
  -----------
  Skip tracksAreWiderThanMinTrackBreadth() if the grid is Masonry
https://bugs.webkit.org/show_bug.cgi?id=251399

Reviewed by Matt Woodrow.

Similar to subgrid let's skip the tracksAreWiderThanMinTrackBreadth() when the Grid is set to Masonry.
Under Masonry the GridTrackSizing algorithm is skipped, so it is not needed to run this.

* Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp:
(WebCore::GridTrackSizingAlgorithm::run):
(WebCore::GridTrackSizingAlgorithm::tracksAreWiderThanMinTrackBreadth const):
* Source/WebCore/rendering/GridTrackSizingAlgorithm.h:
(WebCore::GridTrack::cachedTrackSize const):

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




More information about the webkit-changes mailing list