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