const/non-const and inclusive/non-inclusive shared code improvements for RenderDescendantIterator adapters
https://bugs.webkit.org/show_bug.cgi?id=235680
Summary const/non-const and inclusive/non-inclusive shared code improvements for Rend...
Gabriel Nava Marino
Reported 2022-01-26 16:21:09 PST
As pointed out in https://bugs.webkit.org/show_bug.cgi?id=234018#c28: To avoid code duplication, we should find a way to share code between the non-inclusive and inclusive RenderDescendantIteratorAdapters, since the non-inclusive case is just like inclusive case, but just skipping the thing itself. We should also find a way to support a const reference for descendantsOfType, similarly in a way that avoids duplicating all the code twice, such as by using some const_cast in the implementation.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-02-02 16:22:15 PST
Note You need to log in before you can comment on or make changes to this bug.