Bug 289555

Summary: [Grid][Cleanup] Adopt RenderChildIterator throughout grid code
Product: WebKit Reporter: Sammy Gill <sgill26>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: GoodFirstBug, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Sammy Gill
Reported 2025-03-11 11:47:59 PDT
RenderGrid has a few instances of a common pattern that is used to traverse over its grid items: for (RenderBox* gridItem = firstChildBox(); gridItem; gridItem = gridItem->nextSiblingBox()) If we started adopting RenderChildIterator in these places to do the same thing we could use range based for loops instead which is a nice cleanup
Attachments
Radar WebKit Bug Importer
Comment 1 2025-03-11 11:48:55 PDT
Taher
Comment 2 2025-03-11 14:06:38 PDT
EWS
Comment 3 2025-03-12 14:09:28 PDT
Committed 292043@main (f0515d83ab79): <https://commits.webkit.org/292043@main> Reviewed commits have been landed. Closing PR #42277 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.