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:
Robert O'Callahan 2012-09-17 17:06:12 +12:00
parent 45a2d1f1e1
commit 326ac60736
2 changed files with 10 additions and 4 deletions

View File

@ -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)
{

View File

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