Bug 1396018: Remove the hacky removeflags check we do for display: contents and XBL. r=bz

It's not needed afaict.

MozReview-Commit-ID: LeLguGEEdNy
This commit is contained in:
Emilio Cobos Álvarez 2017-09-01 15:25:09 +02:00
Родитель 68c0a8b2fb
Коммит f4bd95813a
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -8681,19 +8681,19 @@ nsCSSFrameConstructor::ContentRemoved(nsIContent* aContainer,
}
FlattenedChildIterator iter(aChild);
bool didReconstruct = false;
for (nsIContent* c = iter.GetNextChild(); c; c = iter.GetNextChild()) {
if (c->GetPrimaryFrame() || GetDisplayContentsStyleFor(c)) {
LAYOUT_PHASE_TEMP_EXIT();
didReconstruct |= ContentRemoved(aChild, c, nullptr, aFlags);
bool didReconstruct =
ContentRemoved(aChild, c, nullptr, aFlags);
LAYOUT_PHASE_TEMP_REENTER();
if (aFlags != REMOVE_DESTROY_FRAMES && didReconstruct) {
if (didReconstruct) {
return true;
}
}
}
UnregisterDisplayContentsStyleFor(aChild, aContainer);
return didReconstruct;
return false;
}
#ifdef MOZ_XUL