Bug 528002. InvalidateCanvasIfNeeded can do a lot less work. r=roc

This commit is contained in:
Boris Zbarsky 2009-11-11 18:28:16 -05:00
Родитель 776a8e4c40
Коммит f96c9de6d2
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -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);
} }