зеркало из https://github.com/mozilla/gecko-dev.git
bug 78291 - disable processing the dummy layout request during special table reflow command cancel, sr=attinasi
This commit is contained in:
Родитель
2f821884d3
Коммит
4425ff2329
|
@ -858,7 +858,8 @@ public:
|
|||
nsIReflowCommand::ReflowType* aCmdType);
|
||||
NS_IMETHOD CancelReflowCommandInternal(nsIFrame* aTargetFrame,
|
||||
nsIReflowCommand::ReflowType* aCmdType,
|
||||
nsVoidArray& aQueue);
|
||||
nsVoidArray& aQueue,
|
||||
PRBool aProcessDummyLayoutRequest = PR_TRUE);
|
||||
NS_IMETHOD CancelAllReflowCommands();
|
||||
NS_IMETHOD IsSafeToFlush(PRBool& aIsSafeToFlush);
|
||||
NS_IMETHOD FlushPendingNotifications();
|
||||
|
@ -3517,7 +3518,8 @@ PresShell :: IsDragInProgress ( ) const
|
|||
NS_IMETHODIMP
|
||||
PresShell::CancelReflowCommandInternal(nsIFrame* aTargetFrame,
|
||||
nsIReflowCommand::ReflowType* aCmdType,
|
||||
nsVoidArray& aQueue)
|
||||
nsVoidArray& aQueue,
|
||||
PRBool aProcessDummyLayoutRequest)
|
||||
{
|
||||
PRInt32 i, n = aQueue.Count();
|
||||
for (i = 0; i < n; i++) {
|
||||
|
@ -3554,7 +3556,9 @@ PresShell::CancelReflowCommandInternal(nsIFrame* aTargetFrame,
|
|||
}
|
||||
}
|
||||
|
||||
if (aProcessDummyLayoutRequest) {
|
||||
DoneRemovingReflowCommands();
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -5866,7 +5870,8 @@ PresShell::CancelInterruptNotificationTo(nsIFrame* aFrame,
|
|||
nsIPresShell::InterruptType aInterruptType)
|
||||
|
||||
{
|
||||
return CancelReflowCommandInternal(aFrame, nsnull, mTimeoutReflowCommands);
|
||||
// cancel the reflow command without affecting the dummy layout request
|
||||
return CancelReflowCommandInternal(aFrame, nsnull, mTimeoutReflowCommands, PR_FALSE);
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
|
@ -858,7 +858,8 @@ public:
|
|||
nsIReflowCommand::ReflowType* aCmdType);
|
||||
NS_IMETHOD CancelReflowCommandInternal(nsIFrame* aTargetFrame,
|
||||
nsIReflowCommand::ReflowType* aCmdType,
|
||||
nsVoidArray& aQueue);
|
||||
nsVoidArray& aQueue,
|
||||
PRBool aProcessDummyLayoutRequest = PR_TRUE);
|
||||
NS_IMETHOD CancelAllReflowCommands();
|
||||
NS_IMETHOD IsSafeToFlush(PRBool& aIsSafeToFlush);
|
||||
NS_IMETHOD FlushPendingNotifications();
|
||||
|
@ -3517,7 +3518,8 @@ PresShell :: IsDragInProgress ( ) const
|
|||
NS_IMETHODIMP
|
||||
PresShell::CancelReflowCommandInternal(nsIFrame* aTargetFrame,
|
||||
nsIReflowCommand::ReflowType* aCmdType,
|
||||
nsVoidArray& aQueue)
|
||||
nsVoidArray& aQueue,
|
||||
PRBool aProcessDummyLayoutRequest)
|
||||
{
|
||||
PRInt32 i, n = aQueue.Count();
|
||||
for (i = 0; i < n; i++) {
|
||||
|
@ -3554,7 +3556,9 @@ PresShell::CancelReflowCommandInternal(nsIFrame* aTargetFrame,
|
|||
}
|
||||
}
|
||||
|
||||
if (aProcessDummyLayoutRequest) {
|
||||
DoneRemovingReflowCommands();
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -5866,7 +5870,8 @@ PresShell::CancelInterruptNotificationTo(nsIFrame* aFrame,
|
|||
nsIPresShell::InterruptType aInterruptType)
|
||||
|
||||
{
|
||||
return CancelReflowCommandInternal(aFrame, nsnull, mTimeoutReflowCommands);
|
||||
// cancel the reflow command without affecting the dummy layout request
|
||||
return CancelReflowCommandInternal(aFrame, nsnull, mTimeoutReflowCommands, PR_FALSE);
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
Загрузка…
Ссылка в новой задаче