diff --git a/layout/base/FrameLayerBuilder.cpp b/layout/base/FrameLayerBuilder.cpp index fc22b419dcd..bdee546dd26 100644 --- a/layout/base/FrameLayerBuilder.cpp +++ b/layout/base/FrameLayerBuilder.cpp @@ -4319,9 +4319,8 @@ FrameLayerBuilder::PaintItems(nsTArray& aItems, float aXScale, float aYScale, int32_t aCommonClipCount) { -#ifdef MOZ_DUMP_PAINTING DrawTarget& aDrawTarget = *aRC->GetDrawTarget(); -#endif + int32_t appUnitsPerDevPixel = aPresContext->AppUnitsPerDevPixel(); nsRect boundRect = aRect.ToAppUnits(appUnitsPerDevPixel); boundRect.MoveBy(NSIntPixelsToAppUnits(aOffset.x, appUnitsPerDevPixel), @@ -4371,7 +4370,9 @@ FrameLayerBuilder::PaintItems(nsTArray& aItems, } if (cdi->mInactiveLayerManager) { + bool saved = aDrawTarget.GetPermitSubpixelAA(); PaintInactiveLayer(aBuilder, cdi->mInactiveLayerManager, cdi->mItem, aContext, aRC); + aDrawTarget.SetPermitSubpixelAA(saved); } else { nsIFrame* frame = cdi->mItem->Frame(); frame->AddStateBits(NS_FRAME_PAINTED_THEBES);