зеркало из https://github.com/mozilla/pjs.git
Bug 528002. InvalidateCanvasIfNeeded can do a lot less work. r=roc
This commit is contained in:
Родитель
776a8e4c40
Коммит
f96c9de6d2
|
@ -7656,9 +7656,8 @@ InvalidateCanvasIfNeeded(nsIPresShell* presShell, nsIContent* node)
|
||||||
// flush out layout here
|
// flush out layout here
|
||||||
|
|
||||||
nsIViewManager::UpdateViewBatch batch(presShell->GetViewManager());
|
nsIViewManager::UpdateViewBatch batch(presShell->GetViewManager());
|
||||||
ApplyRenderingChangeToTree(presShell->GetPresContext(),
|
nsIFrame* rootFrame = presShell->GetRootFrame();
|
||||||
presShell->GetRootFrame(),
|
rootFrame->Invalidate(rootFrame->GetOverflowRect());
|
||||||
nsChangeHint_RepaintFrame);
|
|
||||||
batch.EndUpdateViewBatch(NS_VMREFRESH_DEFERRED);
|
batch.EndUpdateViewBatch(NS_VMREFRESH_DEFERRED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче