Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary nullptr check from GridMasonryLayout::addItemsToFirstTrack. #7455

Conversation

sammygill
Copy link
Contributor

@sammygill sammygill commented Dec 11, 2022

3f50a04

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

1f55913

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  πŸ§ͺ win
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ›  gtk βœ… πŸ›  wincairo
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac βœ… πŸ§ͺ gtk-wk2
⏳ πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk1 ⏳ πŸ§ͺ api-gtk
βœ… πŸ›  tv βœ… πŸ§ͺ mac-wk2
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch βœ… πŸ§ͺ mac-wk2-stress
βœ… πŸ›  watch-sim

@sammygill sammygill self-assigned this Dec 11, 2022
@sammygill sammygill added the CSS Cascading Style Sheets implementation label Dec 11, 2022
@sammygill sammygill force-pushed the eng/css-grid-GridMasonryLayoutaddItemsToFirstTrack-remove-unnecessary-nullptr-check branch from 3cf3bc9 to 1f55913 Compare December 11, 2022 20:08
@sammygill sammygill added the merge-queue Applied to send a pull request to merge-queue label Dec 12, 2022
…rstTrack.

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-early-warning-system webkit-early-warning-system force-pushed the eng/css-grid-GridMasonryLayoutaddItemsToFirstTrack-remove-unnecessary-nullptr-check branch from 1f55913 to 3f50a04 Compare December 12, 2022 05:11
@webkit-commit-queue
Copy link
Collaborator

Committed 257714@main (3f50a04): https://commits.webkit.org/257714@main

Reviewed commits have been landed. Closing PR #7455 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit 3f50a04 into WebKit:main Dec 12, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Dec 12, 2022
@sammygill sammygill deleted the eng/css-grid-GridMasonryLayoutaddItemsToFirstTrack-remove-unnecessary-nullptr-check branch April 19, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS Cascading Style Sheets implementation
Projects
None yet
4 participants