зеркало из 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
|
||||
|
||||
nsIViewManager::UpdateViewBatch batch(presShell->GetViewManager());
|
||||
ApplyRenderingChangeToTree(presShell->GetPresContext(),
|
||||
presShell->GetRootFrame(),
|
||||
nsChangeHint_RepaintFrame);
|
||||
nsIFrame* rootFrame = presShell->GetRootFrame();
|
||||
rootFrame->Invalidate(rootFrame->GetOverflowRect());
|
||||
batch.EndUpdateViewBatch(NS_VMREFRESH_DEFERRED);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче