Bug 463958 - Remove nsEventStateManager::ForceViewUpdate, r+sr=roc

This commit is contained in:
Olli Pettay 2008-12-03 11:55:44 +02:00
Родитель 5edcab0b92
Коммит 5afcde5bb2
2 изменённых файлов: 0 добавлений и 17 удалений

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

@ -2689,8 +2689,6 @@ nsEventStateManager::DoScrollText(nsPresContext* aPresContext,
else
scrollView->ScrollByLines(scrollX, scrollY,
NS_VMREFRESH_SMOOTHSCROLL | NS_VMREFRESH_DEFERRED);
ForceViewUpdate(scrollView->View());
}
if (passToParent) {
nsresult rv;
@ -5443,20 +5441,6 @@ nsEventStateManager::GetRegisteredAccessKey(nsIContent* aContent,
return NS_OK;
}
void
nsEventStateManager::ForceViewUpdate(nsIView* aView)
{
// force the update to happen now, otherwise multiple scrolls can
// occur before the update is processed. (bug #7354)
nsIViewManager* vm = aView->GetViewManager();
if (vm) {
// I'd use Composite here, but it doesn't always work.
// vm->Composite();
vm->ForceUpdate();
}
}
void
nsEventStateManager::EnsureDocument(nsPresContext* aPresContext)
{

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

@ -312,7 +312,6 @@ protected:
PRInt32 aNumLines,
PRBool aScrollHorizontal,
ScrollQuantity aScrollQuantity);
void ForceViewUpdate(nsIView* aView);
void DoScrollHistory(PRInt32 direction);
void DoScrollZoom(nsIFrame *aTargetFrame, PRInt32 adjustment);
nsresult GetMarkupDocumentViewer(nsIMarkupDocumentViewer** aMv);