Bug 1703774 - Fix radii computation in WebRender codepath for auto-style outline. r=spohl

Differential Revision: https://phabricator.services.mozilla.com/D111235
This commit is contained in:
Emilio Cobos Álvarez 2021-04-08 14:23:25 +00:00
parent 3115c920f6
commit c0ba36dc12

View File

@ -1894,8 +1894,8 @@ void nsNativeBasicTheme::PaintAutoStyleOutline(nsIFrame* aFrame,
// to support arbitrary radii. // to support arbitrary radii.
RectCornerRadii outerRadii; RectCornerRadii outerRadii;
if constexpr (std::is_same_v<PaintBackendData, WebRenderBackendData>) { if constexpr (std::is_same_v<PaintBackendData, WebRenderBackendData>) {
const Float widths[4] = {devPixelOffset, devPixelOffset, devPixelOffset, const Float widths[4] = {width + devPixelOffset, width + devPixelOffset,
devPixelOffset}; width + devPixelOffset, width + devPixelOffset};
nsCSSBorderRenderer::ComputeOuterRadii(innerRadii, widths, &outerRadii); nsCSSBorderRenderer::ComputeOuterRadii(innerRadii, widths, &outerRadii);
const auto dest = wr::ToLayoutRect(rect); const auto dest = wr::ToLayoutRect(rect);