mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Flush tags before calling StartLayout; otherwise we might end updouble-constructing frames for whatever content we hadn't notified on yet. Bug378559, r+sr=sicking
This commit is contained in:
parent
4266bdbdc9
commit
a11e2edb3f
@ -904,6 +904,14 @@ nsContentSink::StartLayout(PRBool aIgnorePendingSheets)
|
||||
|
||||
mDeferredLayoutStart = PR_FALSE;
|
||||
|
||||
// Notify on all our content. If none of our presshells have started layout
|
||||
// yet it'll be a no-op except for updating our data structures, a la
|
||||
// UpdateChildCounts() (because we don't want to double-notify on whatever we
|
||||
// have right now). If some of them _have_ started layout, we want to make
|
||||
// sure to flush tags instead of just calling UpdateChildCounts() after we
|
||||
// loop over the shells.
|
||||
FlushTags();
|
||||
|
||||
mLayoutStarted = PR_TRUE;
|
||||
mLastNotificationTime = PR_Now();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user