зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
89ecb9cd7d
Коммит
50b5d2c559
|
@ -9927,8 +9927,14 @@ InvalidateCanvasIfNeeded(nsIFrame* aFrame)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ancestor != 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,
|
ApplyRenderingChangeToTree(presContext, ancestor,
|
||||||
nsChangeHint_RepaintFrame);
|
nsChangeHint_RepaintFrame);
|
||||||
|
viewManager->EndUpdateViewBatch(NS_VMREFRESH_DEFERRED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче