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