Bug 1264592 - When doing thumbnails for fennec, don't mark frames as painted because it can interfere with tests. r=mstange

MozReview-Commit-ID: KOhZZV3aSLv

--HG--
extra : rebase_source : 80e39ca63cf3b3c54b6adcc8bac23bcd148467f9
This commit is contained in:
Kartikaya Gupta 2016-05-06 10:31:11 -04:00
parent 4c6c57ed83
commit ec6390b365

View File

@ -5554,7 +5554,9 @@ FrameLayerBuilder::PaintItems(nsTArray<ClippedDisplayItem>& aItems,
aDrawTarget.SetPermitSubpixelAA(saved);
} else {
nsIFrame* frame = cdi->mItem->Frame();
frame->AddStateBits(NS_FRAME_PAINTED_THEBES);
if (aBuilder->IsPaintingToWindow()) {
frame->AddStateBits(NS_FRAME_PAINTED_THEBES);
}
#ifdef MOZ_DUMP_PAINTING
if (gfxEnv::DumpPaintItems()) {
DebugPaintItem(aDrawTarget, aPresContext, cdi->mItem, aBuilder);