Calling getRoundedBorderFor() was dropped in 258644@main when refactoring the MenuListButton drawing to go through GraphicsContext. This caused the left and right border gradients to be not clipped. And this made the background of the control part to be filled with the border gradient which is dark gray. Because we do not have access to the RenderStyle in platform/graphics, we have to calculate getRoundedBorderFor() the control part rect in RenderTheme::paint() and pass it all the way to GraphicsContext and to DisplayList recorder.
rdar://104196022
Pull request: https://github.com/WebKit/WebKit/pull/8799
Committed 259325@main (b6af447cab8c): <https://commits.webkit.org/259325@main> Reviewed commits have been landed. Closing PR #8799 and removing active labels.