Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3f50a04024ebe84af4be47752fb4ee3d1a501889
      
https://github.com/WebKit/WebKit/commit/3f50a04024ebe84af4be47752fb4ee3d1a501889
  Author: Sammy Gill <[email protected]>
  Date:   2022-12-11 (Sun, 11 Dec 2022)

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

  Log Message:
  -----------
  Remove unnecessary nullptr check from GridMasonryLayout::addItemsToFirstTrack.
https://bugs.webkit.org/show_bug.cgi?id=249104
rdar://103230303

Reviewed by Alan Baradlay.

The HashMap implementation would not allow a nullptr to get inserted
into the HashMap when a raw C++ pointer is being used as the key,
so the code that iterates over all of the keys and values should not
need to check for nullptr.

The HashMap implementation would not allow a nullptr to get inserted
into the HashMap when a raw C++ pointer is being used as the key,
so the code that iterates over all of the keys and values should not
need to check for nullptr.

* Source/WebCore/rendering/GridMasonryLayout.cpp:
(WebCore::GridMasonryLayout::addItemsToFirstTrack):

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to