mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #2364 - use DrawTarget::DrawSurfaceWithShadow to render box shadows on platforms that accelerate it.
This commit is contained in:
parent
8d30faf95f
commit
4beb3b947c
13 changed files with 228 additions and 150 deletions
|
|
@ -6029,10 +6029,10 @@ nsContextBoxBlur::Init(const nsRect& aRect, nscoord aSpreadRadius,
|
|||
dirtyRect = transform.TransformBounds(dirtyRect);
|
||||
if (aSkipRect) {
|
||||
gfxRect skipRect = transform.TransformBounds(*aSkipRect);
|
||||
mContext = mAlphaBoxBlur.Init(rect, spreadRadius,
|
||||
mContext = mAlphaBoxBlur.Init(aDestinationCtx, rect, spreadRadius,
|
||||
blurRadius, &dirtyRect, &skipRect);
|
||||
} else {
|
||||
mContext = mAlphaBoxBlur.Init(rect, spreadRadius,
|
||||
mContext = mAlphaBoxBlur.Init(aDestinationCtx, rect, spreadRadius,
|
||||
blurRadius, &dirtyRect, nullptr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue