зеркало из https://github.com/mozilla/gecko-dev.git
Bug 463958 - Remove nsEventStateManager::ForceViewUpdate, r+sr=roc
This commit is contained in:
Родитель
5edcab0b92
Коммит
5afcde5bb2
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче