Bug 1394987 - Flush styles in PresShell::ReconstructFrames. r=emilio

MozReview-Commit-ID: GUuE1dKoDvK
This commit is contained in:
Bobby Holley 2017-08-29 16:19:50 -07:00
parent c958f750fa
commit af82cc20b0

View File

@ -4534,7 +4534,10 @@ PresShell::ReconstructFrames()
// Have to make sure that the content notifications are flushed before we
// start messing with the frame model; otherwise we can get content doubling.
mDocument->FlushPendingNotifications(FlushType::ContentAndNotify);
//
// Also make sure that styles are flushed before calling into the frame
// constructor, since that's what it expects.
mDocument->FlushPendingNotifications(FlushType::Style);
if (mIsDestroying) {
return;