Bug 1847936 - Round out radio focusring r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D227719
This commit is contained in:
Mark Striemer 2024-11-06 21:36:52 +00:00
parent 65da1f2489
commit 2a2fd3c3f0

View File

@ -722,7 +722,8 @@ void Theme::PaintRadioControl(PaintBackendData& aPaintData,
}
if (aState.HasState(ElementState::FOCUSRING)) {
PaintRoundedFocusRect(aPaintData, aRect, aColors, aDpiRatio, 5.0f, 1.0f);
auto radius = LayoutDeviceCoord(aRect.Size().width) / aDpiRatio;
PaintRoundedFocusRect(aPaintData, aRect, aColors, aDpiRatio, radius, 1.0f);
}
}