Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
MozReview-Commit-ID: D3fIngSHSsl
This commit is contained in:
@@ -80,7 +80,7 @@ void
|
||||
NotificationController::Shutdown()
|
||||
{
|
||||
if (mObservingState != eNotObservingRefresh &&
|
||||
mPresShell->RemoveRefreshObserver(this, Flush_Display)) {
|
||||
mPresShell->RemoveRefreshObserver(this, FlushType::Display)) {
|
||||
mObservingState = eNotObservingRefresh;
|
||||
}
|
||||
|
||||
@@ -437,7 +437,7 @@ NotificationController::ScheduleProcessing()
|
||||
// If notification flush isn't planed yet start notification flush
|
||||
// asynchronously (after style and layout).
|
||||
if (mObservingState == eNotObservingRefresh) {
|
||||
if (mPresShell->AddRefreshObserver(this, Flush_Display))
|
||||
if (mPresShell->AddRefreshObserver(this, FlushType::Display))
|
||||
mObservingState = eRefreshObserving;
|
||||
}
|
||||
}
|
||||
@@ -885,7 +885,7 @@ NotificationController::WillRefresh(mozilla::TimeStamp aTime)
|
||||
mEvents.IsEmpty() && mTextHash.Count() == 0 &&
|
||||
mHangingChildDocuments.IsEmpty() &&
|
||||
mDocument->HasLoadState(DocAccessible::eCompletelyLoaded) &&
|
||||
mPresShell->RemoveRefreshObserver(this, Flush_Display)) {
|
||||
mPresShell->RemoveRefreshObserver(this, FlushType::Display)) {
|
||||
mObservingState = eNotObservingRefresh;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user