Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
Flush tags before calling StartLayout; otherwise we might end updoubl…
Browse files Browse the repository at this point in the history
…e-constructing frames for whatever content we hadn't notified on yet. Bug378559, r+sr=sicking
  • Loading branch information
bzbarsky@mit.edu committed Apr 26, 2007
1 parent 4266bdb commit a11e2ed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions content/base/src/nsContentSink.cpp
Expand Up @@ -904,6 +904,14 @@ nsContentSink::StartLayout(PRBool aIgnorePendingSheets)


mDeferredLayoutStart = PR_FALSE; 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; mLayoutStarted = PR_TRUE;
mLastNotificationTime = PR_Now(); mLastNotificationTime = PR_Now();


Expand Down

0 comments on commit a11e2ed

Please sign in to comment.