Change FlushPendingNotifications to have more granularity and update callers to
only flush the things they really need flushed. Bug 144072, r+sr=jst git-svn-id: svn://10.0.0.236/trunk@157037 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -429,8 +429,8 @@ nsContentList::Item(PRUint32 aIndex, PRBool aDoFlush)
|
||||
CheckDocumentExistence();
|
||||
|
||||
if (mDocument && aDoFlush) {
|
||||
// Flush pending content changes Bug 4891
|
||||
mDocument->FlushPendingNotifications(PR_FALSE);
|
||||
// Flush pending content changes Bug 4891.
|
||||
mDocument->FlushPendingNotifications(Flush_ContentAndNotify);
|
||||
}
|
||||
|
||||
if (mState != LIST_UP_TO_DATE)
|
||||
@@ -963,7 +963,8 @@ void
|
||||
nsContentList::BringSelfUpToDate(PRBool aDoFlush)
|
||||
{
|
||||
if (mDocument && aDoFlush) {
|
||||
mDocument->FlushPendingNotifications(PR_FALSE); // Flush pending content changes Bug 4891
|
||||
// Flush pending content changes Bug 4891.
|
||||
mDocument->FlushPendingNotifications(Flush_ContentAndNotify);
|
||||
}
|
||||
|
||||
if (mState != LIST_UP_TO_DATE)
|
||||
|
||||
Reference in New Issue
Block a user