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:
Cameron McCormack
2017-01-05 15:31:56 +08:00
parent a35ad172e6
commit 5f9911da79
91 changed files with 289 additions and 277 deletions

View File

@@ -254,7 +254,7 @@ nsTextControlFrame::EnsureEditorInitialized()
// Flush out content on our document. Have to do this, because script
// blockers don't prevent the sink flushing out content and notifying in the
// process, which can destroy frames.
doc->FlushPendingNotifications(Flush_ContentAndNotify);
doc->FlushPendingNotifications(FlushType::ContentAndNotify);
NS_ENSURE_TRUE(weakFrame.IsAlive(), NS_ERROR_FAILURE);
// Make sure that editor init doesn't do things that would kill us off