mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
9cd0d262bd
commit
014c686699
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user