When invalidating the canvas, do a DEFERRED view batch to prevent us entering reflow under frame construction. Bug 402713, r+sr=roc, a=schrep

This commit is contained in:
bzbarsky@mit.edu 2007-11-11 11:09:45 -08:00
parent 9cd0d262bd
commit 014c686699

View File

@ -9927,8 +9927,14 @@ InvalidateCanvasIfNeeded(nsIFrame* aFrame)
}
if (ancestor != aFrame) {
// Wrap this in a DEFERRED view update batch so we don't try to
// flush out layout here
nsIViewManager* viewManager = presContext->GetViewManager();
viewManager->BeginUpdateViewBatch();
ApplyRenderingChangeToTree(presContext, ancestor,
nsChangeHint_RepaintFrame);
viewManager->EndUpdateViewBatch(NS_VMREFRESH_DEFERRED);
}
}