mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 468568. Part 0.6: Assert when ScheduleViewManagerFlush is called on a non-root. r=mattwoodrow
--HG-- extra : rebase_source : cf014da5cd7472fa036a5922c4ca9fff9aa93eac
This commit is contained in:
parent
45a2d1f1e1
commit
326ac60736
@ -518,6 +518,15 @@ nsRefreshDriver::IsRefreshObserver(nsARefreshObserver *aObserver,
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
nsRefreshDriver::ScheduleViewManagerFlush()
|
||||
{
|
||||
NS_ASSERTION(mPresContext->IsRoot(),
|
||||
"Should only schedule view manager flush on root prescontexts");
|
||||
mViewManagerFlushIsPending = true;
|
||||
EnsureTimerStarted(false);
|
||||
}
|
||||
|
||||
void
|
||||
nsRefreshDriver::ScheduleFrameRequestCallbacks(nsIDocument* aDocument)
|
||||
{
|
||||
|
@ -148,10 +148,7 @@ public:
|
||||
/**
|
||||
* Remember whether our presshell's view manager needs a flush
|
||||
*/
|
||||
void ScheduleViewManagerFlush() {
|
||||
mViewManagerFlushIsPending = true;
|
||||
EnsureTimerStarted(false);
|
||||
}
|
||||
void ScheduleViewManagerFlush();
|
||||
void RevokeViewManagerFlush() {
|
||||
mViewManagerFlushIsPending = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user