зеркало из https://github.com/mozilla/gecko-dev.git
bug 68912 - allow nsHTMLTableRowElement::SetCells() to pass a null value. sr=attinasi
This commit is contained in:
Родитель
3407fc1887
Коммит
f58900f87a
|
@ -555,7 +555,10 @@ nsHTMLTableRowElement::SetCells(nsIDOMHTMLCollection* aValue)
|
|||
DeleteCell(i);
|
||||
}
|
||||
|
||||
aValue->GetLength(&numCells);
|
||||
numCells = 0;
|
||||
if (aValue) {
|
||||
aValue->GetLength(&numCells);
|
||||
}
|
||||
|
||||
for (i = 0; i < numCells; i++) {
|
||||
nsCOMPtr<nsIDOMNode> node;
|
||||
|
|
Загрузка…
Ссылка в новой задаче