Bug 615462: Only draw native theme for the dirty rect. r=roc a=blocking-final

This commit is contained in:
Bas Schouten 2010-12-01 04:20:05 +01:00
parent 04de10e53d
commit ba88babee3

View File

@ -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