[webkit-changes] [WebKit/WebKit] 3f50a0: Remove unnecessary nullptr check from GridMasonryL...
Sammy Gill
noreply at github.com
Sun Dec 11 21:11:40 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3f50a04024ebe84af4be47752fb4ee3d1a501889
https://github.com/WebKit/WebKit/commit/3f50a04024ebe84af4be47752fb4ee3d1a501889
Author: Sammy Gill <sammy.gill at apple.com>
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
More information about the webkit-changes
mailing list