Bug 1180036 - Replace the warning that anonymous nodes should not be in child lists with an assert plus whitelisting of known-OK cases. r=bz

This commit is contained in:
Eric Rahm 2015-07-24 09:47:51 -07:00
Родитель 2ce73b774c
Коммит a24ed9cc24
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -1470,7 +1470,8 @@ RestyleManager::RestyleForRemove(Element* aContainer,
// This should be an assert, but this is called incorrectly in
// nsHTMLEditor::DeleteRefToAnonymousNode and the assertions were clogging
// up the logs. Make it an assert again when that's fixed.
NS_WARNING("anonymous nodes should not be in child lists (bug 439258)");
MOZ_ASSERT(aOldChild->GetProperty(nsGkAtoms::restylableAnonymousNode),
"anonymous nodes should not be in child lists (bug 439258)");
}
uint32_t selectorFlags =
aContainer ? (aContainer->GetFlags() & NODE_ALL_SELECTOR_FLAGS) : 0;