Bug 1461701: Remove nsUpdateType and UPDATE_CONTENT_MODEL. r=smaug

MozReview-Commit-ID: 33iBMZqnkAc
This commit is contained in:
Emilio Cobos Álvarez
2018-05-15 15:56:38 +02:00
parent 2eb6c582d6
commit 967e0989f6
25 changed files with 65 additions and 100 deletions

View File

@@ -493,8 +493,7 @@ SinkContext::FlushTags()
mSink->mUpdatesInNotification = 0;
{
// Scope so we call EndUpdate before we decrease mInNotification
mozAutoDocUpdate updateBatch(mSink->mDocument, UPDATE_CONTENT_MODEL,
true);
mozAutoDocUpdate updateBatch(mSink->mDocument, true);
mSink->mBeganUpdate = true;
// Start from the base of the stack (growing downward) and do
@@ -955,7 +954,7 @@ HTMLContentSink::NotifyInsert(nsIContent* aContent,
{
// Scope so we call EndUpdate before we decrease mInNotification
MOZ_AUTO_DOC_UPDATE(mDocument, UPDATE_CONTENT_MODEL, !mBeganUpdate);
MOZ_AUTO_DOC_UPDATE(mDocument, !mBeganUpdate);
nsNodeUtils::ContentInserted(NODE_FROM(aContent, mDocument),
aChildContent);
mLastNotificationTime = PR_Now();