зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
68c0a8b2fb
Коммит
f4bd95813a
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче