mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 615462: Only draw native theme for the dirty rect. r=roc a=blocking-final
This commit is contained in:
parent
04de10e53d
commit
ba88babee3
@ -1213,8 +1213,12 @@ nsCSSRendering::PaintBoxShadowOuter(nsPresContext* aPresContext,
|
||||
devCtx->CreateRenderingContextInstance(*getter_AddRefs(wrapperCtx));
|
||||
wrapperCtx->Init(devCtx, shadowContext);
|
||||
wrapperCtx->Translate(shadowItem->mXOffset, shadowItem->mYOffset);
|
||||
|
||||
nsRect nativeRect;
|
||||
nativeRect.IntersectRect(frameRect, aDirtyRect);
|
||||
|
||||
aPresContext->GetTheme()->DrawWidgetBackground(wrapperCtx, aForFrame,
|
||||
styleDisplay->mAppearance, aFrameArea, frameRect);
|
||||
styleDisplay->mAppearance, aFrameArea, nativeRect);
|
||||
} else {
|
||||
// Clip out the area of the actual frame so the shadow is not shown within
|
||||
// the frame
|
||||
|
Loading…
Reference in New Issue
Block a user