mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1394987 - Flush styles in PresShell::ReconstructFrames. r=emilio
MozReview-Commit-ID: GUuE1dKoDvK
This commit is contained in:
parent
c958f750fa
commit
af82cc20b0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user