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:
@@ -1783,7 +1783,7 @@ nsHTMLDocument::Close(ErrorResult& rv)
|
||||
//
|
||||
// XXXhsivonen keeping this around for bug 577508 / 253951 still :-(
|
||||
if (GetShell()) {
|
||||
FlushPendingNotifications(Flush_Layout);
|
||||
FlushPendingNotifications(FlushType::Layout);
|
||||
}
|
||||
|
||||
// Removing the wyciwygChannel here is wrong when document.close() is
|
||||
@@ -2638,7 +2638,7 @@ nsHTMLDocument::EditingStateChanged()
|
||||
// Flush out style changes on our _parent_ document, if any, so that
|
||||
// our check for a presshell won't get stale information.
|
||||
if (mParentDocument) {
|
||||
mParentDocument->FlushPendingNotifications(Flush_Style);
|
||||
mParentDocument->FlushPendingNotifications(FlushType::Style);
|
||||
}
|
||||
|
||||
// get editing session, make sure this is a strong reference so the
|
||||
@@ -3579,7 +3579,7 @@ nsHTMLDocument::IsEditingOnAfterFlush()
|
||||
if (doc) {
|
||||
// Make sure frames are up to date, since that can affect whether
|
||||
// we're editable.
|
||||
doc->FlushPendingNotifications(Flush_Frames);
|
||||
doc->FlushPendingNotifications(FlushType::Frames);
|
||||
}
|
||||
|
||||
return IsEditingOn();
|
||||
|
||||
Reference in New Issue
Block a user