Bug 898321 - Return success from nsTableEditor::GetCellAt if frame not found; r=ehsan

Adjusted by Aryeh Gregor for review comments.
This commit is contained in:
Daniel Glazman 2015-10-07 16:07:12 +03:00
parent 8527258e66
commit d35c184925

View File

@ -2724,8 +2724,10 @@ nsHTMLEditor::GetCellAt(nsIDOMElement* aTable, int32_t aRowIndex, int32_t aColIn
}
nsTableOuterFrame* tableFrame = GetTableFrame(aTable);
if (!tableFrame)
return NS_ERROR_FAILURE;
if (!tableFrame) {
*aCell = nullptr;
return NS_EDITOR_ELEMENT_NOT_FOUND;
}
nsCOMPtr<nsIDOMElement> domCell =
do_QueryInterface(tableFrame->GetCellAt(aRowIndex, aColIndex));