зеркало из https://github.com/mozilla/gecko-dev.git
Bug 564652. Make sure to flush out restyles on our parent before checking for a presshell. r=dbaron
This commit is contained in:
Родитель
9235009ad6
Коммит
ce3034c6f7
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче