mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
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:
parent
3115c920f6
commit
c0ba36dc12
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user