mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 798691, part 2. r=roc
This commit is contained in:
parent
dc4ef20648
commit
2c1bcc210f
@ -1434,14 +1434,17 @@ nsCSSRendering::PaintBoxShadowInner(nsPresContext* aPresContext,
|
||||
// rendered shadow (even after blurring), so those pixels must be completely
|
||||
// transparent in the shadow, so drawing them changes nothing.
|
||||
gfxContext* renderContext = aRenderingContext.ThebesContext();
|
||||
nsRefPtr<gfxContext> shadowContext;
|
||||
nsContextBoxBlur blurringArea;
|
||||
shadowContext =
|
||||
gfxContext* shadowContext =
|
||||
blurringArea.Init(shadowPaintRect, 0, blurRadius, twipsPerPixel,
|
||||
renderContext, aDirtyRect, &skipGfxRect);
|
||||
if (!shadowContext)
|
||||
continue;
|
||||
|
||||
// shadowContext is owned by either blurringArea or aRenderingContext.
|
||||
MOZ_ASSERT(shadowContext == renderContext ||
|
||||
shadowContext == blurringArea.GetContext());
|
||||
|
||||
// Set the shadow color; if not specified, use the foreground color
|
||||
nscolor shadowColor;
|
||||
if (shadowItem->mHasColor)
|
||||
|
Loading…
Reference in New Issue
Block a user