Bug 564652. Make sure to flush out restyles on our parent before checking for a presshell. r=dbaron

This commit is contained in:
Boris Zbarsky 2010-08-13 14:44:39 +12:00
Родитель 9235009ad6
Коммит ce3034c6f7
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -3236,6 +3236,12 @@ nsHTMLDocument::EditingStateChanged()
return TurnEditingOff();
}
// 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);
}
// get editing session
nsPIDOMWindow *window = GetWindow();
if (!window)